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/075658.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.Manuel Alejandro CerĂ³n Estrada ceronman at gmail.com
Sun Dec 9 01:55:55 CET 2007
2007/12/8, Greg Ewing <greg.ewing at canterbury.ac.nz>:
> I would put it the other way around -- the problem
> that 'yield break' is meant to solve is already solved
> by 'return'. So there's no need for change.

I have been re-thinking the problem and this is true. The only
exception would be empty generators, but they are rare. 'return' works
well for 99.99% of the cases. And the rest 0.01% does not worth a
syntax change.

Thank you very much for all your comments.

Manuel.
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