Issue #14794: slice.indices no longer returns OverflowError for out-o… · pythoncapi/cpython@c8a6967 · GitHub
Skip to content

Commit c8a6967

Browse files
committed
Issue python#14794: slice.indices no longer returns OverflowError for out-of-range start, stop, step or length.
1 parent ff3d515 commit c8a6967

3 files changed

Lines changed: 291 additions & 9 deletions

File tree

Lib/test/test_slice.py

Lines changed: 113 additions & 1 deletion

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #14794: Fix slice.indices to return correct results for huge values,
14+
rather than raising OverflowError.
15+
1316
- Issue #15001: fix segfault on "del sys.module['__main__']". Patch by Victor
1417
Stinner.
1518

Objects/sliceobject.c

Lines changed: 175 additions & 8 deletions

0 commit comments

Comments
 (0)