List Comprehensions Enhancement
Magnus L. Hetland
mlh at idt.ntnu.no
Tue Sep 14 18:08:55 EDT 1999
philh at vision25.demon.co.uk (Phil Hunt) writes:
> > or similar.
>
> Or use a Smalltalk-like collect reserved word, e.g.:
>
> print [collect 3 * x for x in nums]
> print [collect (i,s) for i in nums, for s in strs]
Well - as has been pointed out so often on this newsgroup... Adding
keywords is a surefire way of ensuring that the construct will never
be included official Python. (At least not in a long while...)
--
Magnus
Lie Please forward all spam to
Hetland uce at ftc.org
More information about the Python-list
mailing list