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 <>
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).
Date User Action Args
2011-06-27 01:47:24ncoghlansetrecipients: + ncoghlan, georg.brandl, terry.reedy, scoder, alexandre.vassalotti
2011-06-27 01:47:24ncoghlansetmessageid: <>
2011-06-27 01:47:23ncoghlanlinkissue6673 messages
2011-06-27 01:47:23ncoghlancreate