[Python-Dev] PEP 0424: A method for exposing a length hint
solipsis at pitrou.net
Tue Jul 17 10:30:41 CEST 2012
On Tue, 17 Jul 2012 13:19:55 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> > There are no provisions for infinite iterators, that is not within the scope of
> > this proposal.
> I'll repeat my observation that remaining silent on this point is
> effectively identical to blessing the practice of raising an exception
> in __length_hint__ to force fast failure of attempts to convert an
> infinite iterator to a concrete container.
And I'll repeat that it is false ;) Being silent is certainly not the
same thing as blessing a non-existent practice.
Software development and contracting: http://pro.pitrou.net
More information about the Python-Dev