How to make a reverse for loop in python?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sat Sep 20 20:38:15 EDT 2008


Christian Heimes:
> Unless you have specific needs for highly specialized data types, use lists.

There's also the collections.deque for other related purposes.

(I suggest people willing to look at some nice C code to read the
sources of deque, Hettinger has created some refined code, very
readable).

Bye,
bearophile



More information about the Python-list mailing list