[issue6673] Uncaught comprehension SyntaxError eats up all memory

Nick Coghlan report at bugs.python.org
Mon Jun 27 03:47:24 CEST 2011


Nick Coghlan <ncoghlan at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6673>
_______________________________________


More information about the Python-bugs-list mailing list