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 ncoghlan
Recipients Yury.Selivanov, alex, aronacher, asvetlov, eric.araujo, gcewing, ncoghlan, rfk, rhettinger, rndblnch, zbysz
Date 2011-11-09.10:17:02
SpamBayes Score 2.4457588e-06
Marked as misclassified No
Message-id <1320833824.19.0.616075685755.issue11682@psf.upfronthosting.co.za>
In-reply-to
Content
In reviewing Zbyszek's doc updates and comparing them against the Grammar, I discovered a gratuitous change in the implementation: it allows a bare (i.e. no parentheses) 'yield from' as an argument to a function, even when there's multiple arguments. By contrast, an ordinary yield expression requires parentheses everywhere other than when it's being used as a statement, or as the sole expression on the RHS of an assignment.

I'll add a new test to ensure "yield from x" requires parentheses whenever "yield x" requires them (and fix the Grammar file on the implementation branch accordingly).

I've also pushed a fix to the branch for the refleak Yury pointed out (once I actually ran regrtest in refleak hunting mode it also pointed out that there was a problem, so I know his suggested change definitely fixed it).
History
Date User Action Args
2011-11-09 10:17:04ncoghlansetrecipients: + ncoghlan, rhettinger, gcewing, rndblnch, aronacher, eric.araujo, alex, rfk, asvetlov, zbysz, Yury.Selivanov
2011-11-09 10:17:04ncoghlansetmessageid: <1320833824.19.0.616075685755.issue11682@psf.upfronthosting.co.za>
2011-11-09 10:17:03ncoghlanlinkissue11682 messages
2011-11-09 10:17:02ncoghlancreate