10 Mar
2016
10 Mar
'16
1:40 p.m.
On 10/03/2016 13:11, Koos Zevenhoven wrote:
On Wed, Mar 9, 2016 at 12:10 AM, Mark Mollineaux
wrote: [...] Also, Koos's offering above:
[abs(x) for x in numbers if > 5] Is also very nice, but I don't like it when the filtering is:
[abs(x) for x in numbers if]
[snip]
[foo(x) for x in things if not None]
[foo(x) for x in things if *is* not None] # What you wrote is already valid syntax, equivalent to [foo(x) for x in things]