
On Mon, Jan 11, 2016 at 01:15:47AM +0100, Victor Stinner wrote:
* the behaviour on integer overflow is an implementation detail, it's sad to have to describe it in the specification of a *Python* property. Users expect Python to abtract the hardware
Is that a real possibility? A 32-bit counter will overflow, sure, but a 64-bit counter starting from zero should never overflow in a human lifetime. Even if we assume a billion increments per second (one per nanosecond), it would take over 584 years of continuous operation for the counter to overflow. What am I missing? So I would be inclined to just document that the counter may overflow, and you should always compare it using == or != and not >. I think anything else is overkill. -- Steve