[issue2723] Truncate __len__() at sys.maxsize
Alexander Belopolsky
report at bugs.python.org
Mon May 12 00:48:23 CEST 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Sun, May 11, 2008 at 6:38 PM, Gregory P. Smith
<report at bugs.python.org> wrote:
..
> But I must've missed something, why can't __len__ return the correct
> value?
The problem is the C signature of the sq_length slot:
typedef Py_ssize_t (*lenfunc)(PyObject *);
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2723>
__________________________________
More information about the Python-bugs-list
mailing list