[Python-ideas] Assignments in list/generator expressions
Nick Coghlan
ncoghlan at gmail.com
Sun Apr 10 09:41:49 CEST 2011
More information about the Python-ideas mailing list
Sun Apr 10 09:41:49 CEST 2011
- Previous message: [Python-ideas] Assignments in list/generator expressions
- Next message: [Python-ideas] Assignments in list/generator expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Apr 10, 2011 at 2:27 AM, Eugene Toder <eltoder at gmail.com> wrote: > I'd rather add syntax equivalent to Haskell's let, than inventing > completely new syntax. E.g. with name = expr. Original from the first > post becomes > > ys = [y for x in xs with y = f(x) if y] > > but it's more flexible in general. It isn't strangely missing at all, it's just hard: http://www.python.org/dev/peps/pep-3150/ Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message: [Python-ideas] Assignments in list/generator expressions
- Next message: [Python-ideas] Assignments in list/generator expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list