[issue7942] Inconsistent error types/messages for __len__ between old and new-style classes

R. David Murray report at bugs.python.org
Wed Feb 17 13:58:57 CET 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Interestingly, this (len returning something larger than ssize_t) has not been fixed in python3.

On the other hand, I still think the new-style message is better.  Yes, it is an implementation detail of CPython, but that is exactly the error being reported.  Another implementation might successfully return the value.

----------

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


More information about the Python-bugs-list mailing list