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/2007-December/075653.html below:

[Python-Dev] PEP Idea: Syntactic sugar for StopIteration.

[Python-Dev] PEP Idea: Syntactic sugar for StopIteration. [Python-Dev] PEP Idea: Syntactic sugar for StopIteration.Greg Ewing greg.ewing at canterbury.ac.nz
Sun Dec 9 00:44:04 CET 2007
Manuel Alejandro CerĂ³n Estrada wrote:
> The real problem is that
> raising StopIteration is not orthogonal.

This is a non-problem as far as I can see. In a generator,
the way to stop the iteration is simply to return. In a
non-generator iterator, you're still going to have to
raise StopIteration. So I see no advantage at all to this
proposal.

--
Greg
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