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/2011-June/112013.html below:

[Python-Dev] EuroPython Language Summit report

[Python-Dev] EuroPython Language Summit reportGreg Ewing greg.ewing at canterbury.ac.nz
Sun Jun 26 01:33:13 CEST 2011
P.J. Eby wrote:
> At 10:46 AM 6/25/2011 +1000, Nick Coghlan wrote:
> 
>> Indeed, PEP 380 is *really* hard to do properly without language
>> support.
> 
> No, it isn't.  You add a decorator, a 'from_' class, and a 'return_' 
> function, and there you go.  (See my previous code sketches here in 
> early PEP 380 discussions.)

Will it handle *all* of the generator protocol correctly,
including send(), exception handling, and generator closing?

Also, how efficient would it be? A major benefit of a built-in
implementation is that it can be almost as fast as using the
sub-generator directly.

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