Message208650
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. |
|
Date |
User |
Action |
Args |
2014-01-21 15:08:12 | msmhrt | set | recipients:
+ msmhrt, docs@python |
2014-01-21 15:08:12 | msmhrt | set | messageid: <1390316892.04.0.132074086139.issue20330@psf.upfronthosting.co.za> |
2014-01-21 15:08:11 | msmhrt | link | issue20330 messages |
2014-01-21 15:08:11 | msmhrt | create | |
|