Why can't you assign to a list in a loop without enumerate?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Wed Nov 1 14:28:08 CET 2006


Fredrik Lundh wrote:

> what's wrong with using enumerate?  or a list comprehension?  or
> some other of the many different ways you can use to build a list
> from a set of values?

Shouldn't there be one -- and preferably only one -- obvious way to
do it? 8)

Python Cookbook says "enumerate()", is this still correct with 2.5?

Regards,


Björn

-- 
BOFH excuse #195:

We only support a 28000 bps connection.




More information about the Python-list mailing list