[issue5137] SystemError when __len__ returns a non-number

Raymond Hettinger report at bugs.python.org
Tue Feb 3 05:45:17 CET 2009


New submission from Raymond Hettinger <rhettinger at users.sourceforge.net>:

len(obj) is not happy when obj.__len__() returns a non-number.

----------
files: crasher_len.py
messages: 81024
nosy: rhettinger
priority: release blocker
severity: normal
status: open
title: SystemError when __len__ returns a non-number
type: crash
versions: Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12927/crasher_len.py

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


More information about the Python-bugs-list mailing list