[docs] [issue29710] Incorrect representation caveat on bitwise operation docs
report at bugs.python.org
Fri Jul 20 06:35:02 EDT 2018
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Ah, "the internal representation" was meant to refer a hypothetical representation, rather than literally to CPython's actual implementation, but now that you point it out, I agree my wording is ambiguous. I like Tim's suggested replacement:
4. Performing these calculations with at least one extra sign extension bit in a finite two's complement representation (a working bit-width of ``1 + max(x.bit_length(), y.bit_length()`` or more) is sufficient to get the same result as if there were an infinite number of sign bits.
Python tracker <report at bugs.python.org>
More information about the docs