[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
behaviour.
Review carefully - I'm a newbie! ;-)
Added file: http://bugs.python.org/file11308/len_check2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3729>
_______________________________________
More information about the Python-bugs-list
mailing list