yet another list compr. suggestion

palo Pavol.Severa at gmail.com
Sun Jan 22 16:17:31 EST 2006


I appologize for suggesting (though very humbly) a syntax extension
(maybe particularly idiotic) but just as a wild fantasy, what would you
think about this:
as a substitute for filter, people often use
[x for x in y if z(x)]
The suggestion is that the same result could be achieved by
[x in y if z(x)]




More information about the Python-list mailing list