Elvis Pranskevichus <elpr...@gmail.com> added the comment:

I think that explicitly raising TypeError in __len__() is wrong in any case.  I 
would argue something like NotImplementedError is a better choice to signal the 
absence of length.  Which also makes me think that Python's exceptions are, 
maybe, too coarse sometimes.

----------
versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11674>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to