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@python
components: Documentation
messages: 208650
nosy: docs@python, msmhrt
priority: normal
severity: normal
status: open
title: PEP 342 is outdated
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20330>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to