Stéphane Wirtel added the comment:

__length_hint__ returns an estimated length for the object.

As you said, if the object passed-in has a length, we could use it. If not, 
then raise TypeError. But we will have two different behaviors in function of 
the parameter.

----------
nosy: +matrixise

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

Reply via email to