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

Hagen Fürstenau report at bugs.python.org
Fri Aug 29 18:18:57 CEST 2008

Hagen Fürstenau <hfuerstenau at gmx.net> added the comment:

Of course we can do both: Accept integral-like types and reset the
exception text. The new patch does this and adds a test for the new

Review carefully - I'm a newbie! ;-)

Added file: http://bugs.python.org/file11308/len_check2.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list