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 alexandre.vassalotti, georg.brandl, ncoghlan, scoder, terry.reedy
Date 2011-06-27.01:47:23
SpamBayes Score 3.41932e-05
Marked as misclassified No
Message-id <1309139244.13.0.861086076052.issue6673@psf.upfronthosting.co.za>
In-reply-to
Content
The acceptance of PEP 380 actually muddies the waters on this one - the expansion I cited as a syntax error now has a defined meaning. Specifically, list comprehensions containing yield expressions would become generators that return a list (set and dict comprehensions would become generators that return a set or dict, respectively).

Once it is confirmed those semantics are an acceptable outcome of PEP 380's acceptance, this behaviour would be documented in the appropriate locations (likely under the yield expression, with pointers from other parts of the documentation).
History
Date User Action Args
2011-06-27 01:47:24ncoghlansetrecipients: + ncoghlan, georg.brandl, terry.reedy, scoder, alexandre.vassalotti
2011-06-27 01:47:24ncoghlansetmessageid: <1309139244.13.0.861086076052.issue6673@psf.upfronthosting.co.za>
2011-06-27 01:47:23ncoghlanlinkissue6673 messages
2011-06-27 01:47:23ncoghlancreate