Re:The Zen of Python by Example
by drdaeman on Thursday February 10, 2011 @06:49PM
(#2204441)
With [...] you are doing the same as list(...), so your example would return a list:
If you want a generator instead:
So you'll get:
I don't know which one would be more Pythonic, clean and simple lambda one-liner or two-lined simple function.
[ Parent
| on HN ]
There are no comments on this comment yet.