Message116839
One other thought. If there is a perceived need, I would rather an alternate approach that unifies a language a bit by letting range() expose its arguments as a slice and modify its input to accept a slice.
>>> range(0, 20, 2).slice
slice(0, 20, 20)
>>> range(_)
range(0, 20, 2)
>>> s = range(0, 20, 2).slice
>>> s.start
0
>>> s.stop
20
>>> s.step
2 |
|
Date |
User |
Action |
Args |
2010-09-18 23:15:41 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, daniel.urban |
2010-09-18 23:15:40 | rhettinger | set | messageid: <1284851740.92.0.464797955035.issue9896@psf.upfronthosting.co.za> |
2010-09-18 23:15:38 | rhettinger | link | issue9896 messages |
2010-09-18 23:15:38 | rhettinger | create | |
|