iterating in reverse

Mel Wilson mwilson at
Fri Jan 17 17:53:04 CET 2003

In article <f57664b9.0301170054.1c5fbe38 at>,
jbperez808 at (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.

        Regards.        Mel.

More information about the Python-list mailing list