Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dffa0e commit 04e2428Copy full SHA for 04e2428
1 file changed
Doc/whatsnew/3.4.rst
@@ -1720,6 +1720,11 @@ Changes in the Python API
1720
informative :exc:`ValueError` rather than the previous more mysterious
1721
:exc:`AttributeError` (:issue:`9177`).
1722
1723
+* :meth:`slice.indices` no longer produces an :exc:`OverflowError` for huge
1724
+ values. As a consequence of this fix, :meth:`slice.indices` now raises a
1725
+ :exc:`ValueError` if given a negative length; previously it returned nonsense
1726
+ values (:issue:`14794`).
1727
+
1728
1729
Changes in the C API
1730
--------------------
0 commit comments