[Python-ideas] 'where' statement in Python? (original) (raw)
Andrey Popp 8mayday at gmail.com
Tue Jul 20 22:02:07 CEST 2010
- Previous message: [Python-ideas] 'where' statement in Python?
- Next message: [Python-ideas] 'where' statement in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yes, exactly this, it was a typo.
On Tue, Jul 20, 2010 at 7:28 PM, John Arbash Meinel <john.arbash.meinel at 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 anotherlist if y < 5 where y = f(x)]_ _Do you mean:_ _mylist = [y for x in anotherlist if y < 5 where y = f(x)]_ _John_ _=:->
-- Andrey Popp
phone: +7 911 740 24 91 e-mail: 8mayday at gmail.com
- Previous message: [Python-ideas] 'where' statement in Python?
- Next message: [Python-ideas] 'where' statement in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]