
20 Jul
2010
20 Jul
'10
10:02 p.m.
Yes, exactly this, it was a typo.
On Tue, Jul 20, 2010 at 7:28 PM, John Arbash Meinel john.arbash.meinel@gmail.com wrote:
Andrey Popp wrote:
Hello,
PEP-3150 is awesome, just a small addition — why not to allow one-liners `where`s:
a = (b, b) where b = 43
And that also make sense for generator/list/set/dict comprehensions:
mylist = [y for y in another_list if y < 5 where y = f(x)]
Do you mean:
mylist = [y for x in another_list if y < 5 where y = f(x)]
John =:->
--
Andrey Popp
phone: +7 911 740 24 91
e-mail: 8mayday@gmail.com