Alex Shkop added the comment:
This is true. In ceval.c default value for end index is PY_SSIZE_T_MAX. Whereas
in sysmodule.c defined:
SET_SYS_FROM_STRING("maxsize",
PyInt_FromSsize_t(PY_SSIZE_T_MAX));
SET_SYS_FROM_STRING("maxint",
PyInt_FromLong(PyInt_GetMax()));
I added a patch that fixes documentation. But please note, that __getslice__ is
deprecated since Python 2.0 and is no longer supported in Python 3. Use
__getitem__ instead.
----------
keywords: +patch
nosy: +ashkop
Added file: http://bugs.python.org/file38468/issue23645.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23645>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com