list comprehension (searching for onliners)

Roberto Bonvallet Roberto.Bonvallet at cern.ch
Fri Oct 20 16:50:38 CEST 2006


Gerardo Herzig wrote:
[...]
> and so on...what i need to do is some list comprehension that returns me 
> something like
[...]

You don't _need_ a list comprehension, you just _want_ one :)

[...]
> Ill keeping blew off my hair and drinking more cofee while searching for 
> this damn onliner im looking for.

I know, trying to put complex logic in one line makes you do all that.

Go for the multiliner!
-- 
Roberto Bonvallet



More information about the Python-list mailing list