is this pythonic?

Simon Brunning simon.brunning at gmail.com
Wed Jul 20 09:19:50 EDT 2005


On 7/20/05, Mage <mage at mage.hu> wrote:
> Or is there better way?
> 
> for (i, url) in [(i,links[i]) for i in range(len(links))]:

for i, url in enumerate(links):

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list