Message148950
There is a test for 'yield from' as a function argument without the extra parentheses.
f(yield from x)
You do need them in the case of a regular yield.
f((yield)) or f((yield value))
Shouldn't the same rule apply in both cases?
* I'm trying to do a version of the patch with 'yield_from' as a separate item from 'yield' in the grammar, but it insists on the parentheses due to it being a yield_expr component. |
|
Date |
User |
Action |
Args |
2011-12-07 05:46:15 | ron_adam | set | recipients:
+ ron_adam, rhettinger, gcewing, ncoghlan, rndblnch, aronacher, eric.araujo, alex, rfk, asvetlov, zbysz, Yury.Selivanov |
2011-12-07 05:46:15 | ron_adam | set | messageid: <1323236775.47.0.5980194063.issue11682@psf.upfronthosting.co.za> |
2011-12-07 05:46:10 | ron_adam | link | issue11682 messages |
2011-12-07 05:46:10 | ron_adam | create | |
|