Message148977
Thanks for the updated links Nick.
There is a comment in the docs that recommends putting parentheses around any yield expression that returns a value. So it is in agreement with that in the function argument case.
The grammar I used does keep it as a variant.
yield_expr 'yield' [testlist | yield_from]
yield_from 'from' test
The purpose of doing that is so I can do ...
yield_expr 'yield' [testlist | yield_from | yield_raise]
yield_from 'from' test
yield_raise 'raise' [test ['from' test]]
The yield_raise part is only an interesting exercise to help me understand cpythons internals better. I'm getting there and hope to be able to contribute to more bug fixes, and patches. :-) |
|
Date |
User |
Action |
Args |
2011-12-07 16:49:56 | ron_adam | set | recipients:
+ ron_adam, rhettinger, gcewing, ncoghlan, rndblnch, aronacher, eric.araujo, alex, rfk, asvetlov, zbysz, Yury.Selivanov |
2011-12-07 16:49:56 | ron_adam | set | messageid: <1323276596.86.0.421009211232.issue11682@psf.upfronthosting.co.za> |
2011-12-07 16:49:56 | ron_adam | link | issue11682 messages |
2011-12-07 16:49:56 | ron_adam | create | |
|