How to make a reverse for loop in python?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sun Sep 21 02:38:15 CEST 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