[docs] [issue16557] PEP 380 isn't reflected in the Functional Programming HOWTO

Masami HIRATA report at bugs.python.org
Mon Nov 26 13:07:18 CET 2012


New submission from Masami HIRATA:

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.

----------
assignee: docs at python
components: Documentation
messages: 176407
nosy: docs at python, msmhrt
priority: normal
severity: normal
status: open
title: PEP 380 isn't reflected in the Functional Programming HOWTO
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16557>
_______________________________________


More information about the docs mailing list