[issue2183] optimize list comprehensions

Raymond Hettinger report at bugs.python.org
Wed Dec 17 00:50:18 CET 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

This looks like a major improvement, not just for speed, but for getting
rid of the _[1] arguments setup, retrieval, and deletion.

I presume it has been tested with nested and conditional variants? 

     def f(): return [x for t in s for x in t if x]

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2183>
_______________________________________


More information about the Python-bugs-list mailing list