[ANN] PEP 279 version 1.5

Raymond Hettinger python at rcn.com
Mon Mar 4 20:55:20 EST 2002


PEP 279 -- Enhanced Generators has been updated:
http://python.sourceforge.net/peps/pep-0279.html

Additional comments are solicited before it is sent
to Guido for pronouncement.


Raymond Hettinger


Changes:
-- Added link to a pure python reference implementation and example code
-- indexed() proposal compared and contrasted to PEP 212
-- added pros and cons of built-ins vs. a separate module
-- discussion of restartability factored-out to separate section
-- generator comprehensions presented without restartable class wrapper
-- 'yield' to be an expression rather than statement
-- .throw syntax revised to exactly match 'raise'
-- try/finally prohibition in generators as another argument for .throw()
-- alternative names for 'throw' listed
-- referenced Oren Tirosh's work in the XLazy library
-- minor wording, spelling, and formatting changes through-out








More information about the Python-list mailing list