[issue3729] SystemError on calling len() if __len__() doesn't return an int

Georg Brandl report at bugs.python.org
Fri Aug 29 21:56:45 CEST 2008


Georg Brandl <georg at python.org> added the comment:

That is *not* wanted. We had a discussion on the list about changing the
return value of the sq_length slot to allow larger lengths to be
reported, and while I don't recall why this wasn't done, I do recall
that the consensus was that if Py_ssize_t remains, len() should raise
rather than lie for larger values-

----------
nosy: +georg.brandl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3729>
_______________________________________


More information about the Python-bugs-list mailing list