<div dir="ltr">Hi,<div><br></div><div>I can't even seem to sign up for an account (which, from what I've read would still not be sufficient).</div><div><br></div><div>I was hoping to add a Python 3 compatible implementation of the proposed 'irange' function (<a href="https://wiki.python.org/moin/RangeGenerator">https://wiki.python.org/moin/RangeGenerator</a>):</div><div><br></div><div><div>def irange(start, stop=None, step=1):</div><div>    """ Generator for a list containing an arithmetic progression of integers.</div><div>        range(i, j) returns [i, i+1, i+2, ..., j-1]; start (!) defaults to 0.</div><div>        When step is given, it specifies the increment (or decrement).</div><div>        For example, range(4) returns [0, 1, 2, 3].  The end point is omitted!</div><div>        These are exactly the valid indices for a list of 4 elements.</div><div>    """</div><div>    if step == 0:</div><div>        raise ValueError("irange() step argument must not be zero")</div><div><br></div><div>    if stop is None:</div><div>        stop = start</div><div>        start = 0</div><div>    continue_cmp = (step < 0) * 2 - 1</div><div><br></div><div>    while ((start > stop) - (start < stop)) == continue_cmp:</div><div>        yield start</div><div>        start += step</div></div><div><br></div><div>If someone would be willing to edit this page for me I'd be grateful. Unless, of course, this has already been implemented in Python 3, thus making my effort pointless :)</div><div><br></div><div>Mark</div></div>