Jan. 30, 2013
2:34 a.m.
Sorry, that was phrased backwards: the ease of wrapping iterators increases the viability… Shane Green www.umbrellacode.com 408-692-4666 | shane@umbrellacode.com On Jan 29, 2013, at 6:31 PM, Shane Green <shane@umbrellacode.com> wrote:
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@umbrellacode.com