Generator slower than iterator?

Arnaud Delobelle arnodel at googlemail.com
Tue Dec 16 14:29:44 EST 2008


Arnaud Delobelle <arnodel at googlemail.com> writes:

> match_total = dict((key, val()) for key, val in match_counter.iteritems())

Sorry I meant

match_total = dict((key, val.next())
                   for key, val in match_counter.iteritems())

-- 
Arnaud



More information about the Python-list mailing list