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
participants (1)
-
Raymond Hettinger