iterating in reverse
mwilson at the-wire.com
Fri Jan 17 17:53:04 CET 2003
In article <f57664b9.0301170054.1c5fbe38 at posting.google.com>,
jbperez808 at yahoo.com (Jonathan P.) wrote:
>I need to iterate using for in both the original order and
>in reverse depending on the situation.
>The main thing that bugs me is that I have to choose between
>storing 2 copies of the same data (one reversed, the other not)
Note that you don't necessarily store two copies of all
the same data.. you store two collections of references to
the 'same data'. It could make a difference.
More information about the Python-list