[docs] [issue23645] Incorrect doc for __getslice__

Alex Shkop report at bugs.python.org
Fri Mar 13 09:39:45 CET 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23645>
_______________________________________


More information about the docs mailing list