This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients dstufft, madison.may, rhettinger, terry.reedy
Date 2013-09-01.05:36:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378013779.63.0.0569211770556.issue18826@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, Guido rejected this idea a long time ago.  We do have the __reversed__ hook so you can add reverse iteration to your own classes where it makes sense.

Doing it in the general case is more problematic.  Some data sources such as generators can't be run backwards so they would have to be run to exhaustion and saved in memory to support reversed iteration.  If a user wants this behavior, it is trivial to achieve it by running reversed(list(it)).  The user is in for unhappiness though if the underlying iterator is infinite or huge ;-)
History
Date User Action Args
2013-09-01 05:36:19rhettingersetrecipients: + rhettinger, terry.reedy, dstufft, madison.may
2013-09-01 05:36:19rhettingersetmessageid: <1378013779.63.0.0569211770556.issue18826@psf.upfronthosting.co.za>
2013-09-01 05:36:19rhettingerlinkissue18826 messages
2013-09-01 05:36:19rhettingercreate