[Python-Dev] PEP 340 -- loose ends

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Wed May 4 01:45:38 CEST 2005


Another loose end (which can partially explain why I still thought
__next__ took an exception ;)

In "Specification: Generator Exit Handling"::

    "When __next__() is called with an argument that is not None, the
    yield-expression that it resumes will return the value attribute
    of the argument."

I think this should read::

    "When __next__() is called with an argument that is not None, the
    yield-expression that it resumes will return the argument."

Tim Delaney


More information about the Python-Dev mailing list