Message104687
I agree that this issue should be closed with no further action, but for historical accuracy the resolution should be "out of date" rather than "won't fix". The original bug was about range() behavior when it get arguments that are not ints, but "coerce-able into ints via __int__". Since range() no longer accepts such arguments, the issue is moot and there is nothing to fix or not fix here.
As a pie in the sky idea, I always wanted a range function that would work on any arguments that support addition and ordering. For example range(date(2010,1,1), date(2010, 2, 1), timedelta(7)) to return all Fridays in January, 2010. However, since advent of generator functions, this became simply
def range(start, stop, step):
while start < stop:
yield start
start += step
and thus unnecessary for stdlib. |
|
Date |
User |
Action |
Args |
2010-05-01 02:01:21 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky, loewis, rhettinger, mark.dickinson, christian.heimes, josm, robertwb, zanella, akitada |
2010-05-01 02:01:21 | Alexander.Belopolsky | set | messageid: <1272679281.23.0.49327920101.issue1533@psf.upfronthosting.co.za> |
2010-05-01 02:01:18 | Alexander.Belopolsky | link | issue1533 messages |
2010-05-01 02:01:17 | Alexander.Belopolsky | create | |
|