How to make a reverse for loop in python?

bearophileHUGS at bearophileHUGS at
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


More information about the Python-list mailing list