Nick Coghlan <ncogh...@gmail.com> added the comment:

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).

----------
type: crash -> resource usage

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6673>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to