ysj.ray <ysj.ray at gmail.com> added the comment: `step` argument for xrange() could not be 0. But `s.stop or sys.maxint` is really a problem, in the case of `s.stop == 0`. So the given `Equivalent to` python code in the doc is not precisely equivalent to the c implementation. The doc needs a fix. ---------- nosy: +ysj.ray _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue11908> _______________________________________