[New-bugs-announce] [issue20330] PEP 342 is outdated
Masami HIRATA
report at bugs.python.org
Tue Jan 21 16:08:12 CET 2014
New submission from Masami HIRATA:
Although PEP 342 says foo(yield 42) is legal, Lib/test/test_grammar.py says:
> # Requires parentheses as call argument
> def g(): f((yield 1))
> check_syntax_error(self, "def g(): f(yield 1)")
BTW, It seems that foo(yield 42) written in ECMAScript 6 is OK.
----------
assignee: docs at python
components: Documentation
messages: 208650
nosy: docs at python, msmhrt
priority: normal
severity: normal
status: open
title: PEP 342 is outdated
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20330>
_______________________________________
More information about the New-bugs-announce
mailing list