This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author msmhrt
Recipients docs@python, msmhrt
Date 2012-11-26.12:07:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353931638.82.0.313274646017.issue16557@psf.upfronthosting.co.za>
In-reply-to
Content
Although PEP 380 says:
> 2. In a generator, the statement ::
> 
>     return value
> 
> is semantically equivalent to ::
> 
>     raise StopIteration(value)

Functional Programming HOWTO (Doc/howto/functional.rst) says:
> ``return`` with a value, such as ``return 5``, is a syntax error inside a generator function.
History
Date User Action Args
2012-11-26 12:07:18msmhrtsetrecipients: + msmhrt, docs@python
2012-11-26 12:07:18msmhrtsetmessageid: <1353931638.82.0.313274646017.issue16557@psf.upfronthosting.co.za>
2012-11-26 12:07:18msmhrtlinkissue16557 messages
2012-11-26 12:07:17msmhrtcreate