Why I think range is a wart.

ruud de rooij * at spam.ruud.org
Wed Mar 13 12:16:09 EST 2002


ruud de rooij <*@spam.ruud.org> writes:

> [ (item, sublist[i]) for (item, i) in thelist.items() ]

oops, i meant:

[ (item, sublist[i]) for (i, item) in thelist.items() ]

        - ruud
-- 
ruud de rooij | *@spam.ruud.org | http://ruud.org



More information about the Python-list mailing list