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

New submission from Masami HIRATA: Although PEP 380 says:
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@python components: Documentation messages: 176407 nosy: docs@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@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Changes by Andrew Svetlov <andrew.svetlov@gmail.com>: ---------- keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Ramchandra Apte added the comment: Attached is a patch. Note that this is my first Doc patch; please apologize errors. ---------- keywords: +patch nosy: +ramchandra.apte Added file: http://bugs.python.org/file28793/issue16557.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Roundup Robot added the comment: New changeset e0de6e6e992e by Ezio Melotti in branch '3.3': #16557: update functional howto -- "return value" is valid after PEP 380. Initial patch by Ramchandra Apte. http://hg.python.org/cpython/rev/e0de6e6e992e New changeset 81b2a30da853 by Ezio Melotti in branch 'default': #16557: merge with 3.3. http://hg.python.org/cpython/rev/81b2a30da853 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Ezio Melotti added the comment: Fixed, thanks for the report and the patch! ---------- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Changes by Andrew Svetlov <andrew.svetlov@gmail.com>: ---------- keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Ramchandra Apte added the comment: Attached is a patch. Note that this is my first Doc patch; please apologize errors. ---------- keywords: +patch nosy: +ramchandra.apte Added file: http://bugs.python.org/file28793/issue16557.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Roundup Robot added the comment: New changeset e0de6e6e992e by Ezio Melotti in branch '3.3': #16557: update functional howto -- "return value" is valid after PEP 380. Initial patch by Ramchandra Apte. http://hg.python.org/cpython/rev/e0de6e6e992e New changeset 81b2a30da853 by Ezio Melotti in branch 'default': #16557: merge with 3.3. http://hg.python.org/cpython/rev/81b2a30da853 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________

Ezio Melotti added the comment: Fixed, thanks for the report and the patch! ---------- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16557> _______________________________________
participants (5)
-
Andrew Svetlov
-
Ezio Melotti
-
Masami HIRATA
-
Ramchandra Apte
-
Roundup Robot