PEP 255: Simple Generators
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Mon Jun 25 02:16:45 EDT 2001
Mon, 25 Jun 2001 08:34:34 +0400 (MSD), Roman Suzi <rnd at onego.ru> pisze:
> Maybe there could be some reason to add "yield" in a
> form of function also to make things like:
>
> [ << x for i in .... ]
I don't see why to use a list comprehension instead of a for loop
when the result list is not used.
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list