A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-July/120985.html below:

[Python-Dev] PEP 0424: A method for exposing a length hint

[Python-Dev] PEP 0424: A method for exposing a length hint [Python-Dev] PEP 0424: A method for exposing a length hintAntoine Pitrou 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.

Regards

Antoine.


-- 
Software development and contracting: http://pro.pitrou.net


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4