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 Asa.Dawson
Recipients Asa.Dawson
Date 2011-11-25.14:51:34
SpamBayes Score 1.2575041e-09
Marked as misclassified No
Message-id <1322232695.49.0.811038839727.issue13480@psf.upfronthosting.co.za>
In-reply-to
Content
range has an odd behavior in which it assumes (regardless of start/end) that it should be counting up. Attempting something such as:

for i in range(10,0):
    print i

This loop simply runs through without doing anything, because start is larger than end.

I'm putting forward the proposition that when end is lower than start, range should count downwards rather than upwards.
History
Date User Action Args
2011-11-25 14:51:35Asa.Dawsonsetrecipients: + Asa.Dawson
2011-11-25 14:51:35Asa.Dawsonsetmessageid: <1322232695.49.0.811038839727.issue13480@psf.upfronthosting.co.za>
2011-11-25 14:51:34Asa.Dawsonlinkissue13480 messages
2011-11-25 14:51:34Asa.Dawsoncreate