Fredrik Lundh wrote:

> "enumerate" is the obviously right thing for this, sure.

K.

> but it's not necessarily the right thing for the OP's "I want to
> create a new list based on an existing list".  modifying the
> existing list is usually not the most efficient way to do that.

Agreed.

Regards,


Björn

-- 
BOFH excuse #418:

Sysadmins busy fighting SPAM.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to