This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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:15ron_adamsetrecipients: + ron_adam, rhettinger, gcewing, ncoghlan, rndblnch, aronacher, eric.araujo, alex, rfk, asvetlov, zbysz, Yury.Selivanov
2011-12-07 05:46:15ron_adamsetmessageid: <>
2011-12-07 05:46:10ron_adamlinkissue11682 messages
2011-12-07 05:46:10ron_adamcreate