Message148950
| Author | ron_adam |
|---|---|
| Recipients | Yury.Selivanov, alex, aronacher, asvetlov, eric.araujo, gcewing, ncoghlan, rfk, rhettinger, rndblnch, ron_adam, zbysz |
| Date | 2011-12-07.05:46:10 |
| SpamBayes Score | 0.0017345 |
| Marked as misclassified | No |
| Message-id | <1323236775.47.0.5980194063.issue11682@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |