[Python-ideas] while conditional in list comprehension ??
Shane Green
shane at umbrellacode.com
Wed Jan 30 03:31:37 CET 2013
Although it's not always viable, given how easy it is to wrap an iterator, it seems like might come in handy for comprehensions.
[x for x in items if x < 50 or items.close()]
Shane Green
www.umbrellacode.com
408-692-4666 | shane at umbrellacode.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130129/6a7864f8/attachment.html>
More information about the Python-ideas
mailing list