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

Paul Boddie report at bugs.python.org
Wed Feb 17 00:17:50 CET 2010


Paul Boddie <paul at boddie.org.uk> added the comment:

I would have expected a more accurate error message for the new-style class. In the original message which brought this to my attention, the cause was not particularly obvious:

http://www.selenic.com/pipermail/mercurial/2010-February/030066.html

I concede that the different mechanisms in place for new-style classes might make it hard to have a specific error message in such a situation, though.

----------

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


More information about the Python-bugs-list mailing list