Message 77676 - Python tracker
> I'll work on the documentation Ok, cool. > a description of the semantics of numbits for 0 and negative integers About the negative integer: the documentation should be "number of bits of the *absolute value* of x" and "by convention, 0.numbits() is 0". But you're right, the documentation is not clear.