projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dffa0e
)
whatsnew: slice.index no longer accepts negative values (or overflows).
author
R David Murray
<rdmurray@bitdance.com>
Tue, 11 Feb 2014 02:30:42 +0000
(21:30 -0500)
committer
R David Murray
<rdmurray@bitdance.com>
Tue, 11 Feb 2014 02:30:42 +0000
(21:30 -0500)
Doc/whatsnew/3.4.rst
patch
|
blob
|
history
diff --git
a/Doc/whatsnew/3.4.rst
b/Doc/whatsnew/3.4.rst
index b1ef2775b23e1968b2887480555a6c04822646d1..8e028e66031be4623aaba1fe8604e262e25947e5 100644
(file)
--- a/
Doc/whatsnew/3.4.rst
+++ b/
Doc/whatsnew/3.4.rst
@@
-1720,6
+1720,11
@@
Changes in the Python API
informative :exc:`ValueError` rather than the previous more mysterious
:exc:`AttributeError` (:issue:`9177`).
+* :meth:`slice.indices` no longer produces an :exc:`OverflowError` for huge
+ values. As a consequence of this fix, :meth:`slice.indices` now raises a
+ :exc:`ValueError` if given a negative length; previously it returned nonsense
+ values (:issue:`14794`).
+
Changes in the C API
--------------------