Author cool-RR
Recipients cool-RR, docs@python
Date 2011-04-22.17:37:25
SpamBayes Score 0.147063
Marked as misclassified No
Message-id <>
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:26cool-RRsetrecipients: + cool-RR, docs@python
2011-04-22 17:37:26cool-RRsetmessageid: <>
2011-04-22 17:37:25cool-RRlinkissue11908 messages
2011-04-22 17:37:25cool-RRcreate