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 2014-01-21.15:08:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390316892.04.0.132074086139.issue20330@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-01-21 15:08:12msmhrtsetrecipients: + msmhrt, docs@python
2014-01-21 15:08:12msmhrtsetmessageid: <1390316892.04.0.132074086139.issue20330@psf.upfronthosting.co.za>
2014-01-21 15:08:11msmhrtlinkissue20330 messages
2014-01-21 15:08:11msmhrtcreate