Message148977
| Author | ron_adam |
|---|---|
| Recipients | Yury.Selivanov, alex, aronacher, asvetlov, eric.araujo, gcewing, ncoghlan, rfk, rhettinger, rndblnch, ron_adam, zbysz |
| Date | 2011-12-07.16:49:56 |
| SpamBayes Score | 1.2545819e-05 |
| Marked as misclassified | No |
| Message-id | <1323276596.86.0.421009211232.issue11682@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. :-) |
|
| History | |||
|---|---|---|---|
| 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 | |