Message134276
In the documentation for `itertools.islice` I see this line:
it = iter(xrange(s.start or 0, s.stop or sys.maxint, s.step or 1))
Is it really okay to do `s.stop or sys.maxint`? I'm assuming this was targeting `None`, but what if `s.stop == 0`? And `s.step` could (pathologically) be `0` too, no? |
|
Date |
User |
Action |
Args |
2011-04-22 17:37:26 | cool-RR | set | recipients:
+ cool-RR, docs@python |
2011-04-22 17:37:26 | cool-RR | set | messageid: <1303493846.17.0.214651551769.issue11908@psf.upfronthosting.co.za> |
2011-04-22 17:37:25 | cool-RR | link | issue11908 messages |
2011-04-22 17:37:25 | cool-RR | create | |
|