Comment 1 for bug 1093446

Revision history for this message
Andrew Cooke (ato2gx513oupn-andrew-n1by9anq91ai4) wrote : Re: allow_wraparound misleadingly documented

So I went and wrote some tests. The documentation is incorrect; the parameter name is correct. So it should read:

allow_wraparound (boolean) - If *False* (default), the function will raise an OverflowError exception as soon as the counter wraps around. If True, the counter will simply restart from zero.

Note that the default (correctly, imho) remains False, so has shifted in the description above.