yet another list compr. suggestion
Alan Franzoni
alan.franzoni.xyz at gmail.com
Sun Jan 22 16:33:35 EST 2006
palo on comp.lang.python said:
> The suggestion is that the same result could be achieved by
> [x in y if z(x)]
It's just a special case... and it saves very few carachters... I don't
think it would justify an update to the parser. What if you want to do
something like:
[str(x) for x in y if z(x)]
You've got to stick to the present syntax.
--
Alan Franzoni <alan.franzoni.xyz at gmail.com>
-
Togli .xyz dalla mia email per contattarmi.
Rremove .xyz from my address in order to contact me.
-
GPG Key Fingerprint:
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E
More information about the Python-list
mailing list