>>> bin(-1)
'-0b1'
bin() function returns '-' and '0b' and the absolute value of the input negative number. (I knew that python will suffer underflow, but it will never overflow.) Is that how python store a negative number? Store negative sign and its absolute value? Where is the sign bit in Python?
If I input:
int('1000..(many many zeros)..0000',2)
No matter how many zeros, the '1' on the head will never be regard as minus sign bit? Therefore, does that mean the relationship between binary and integer isn't the same as that in C++? I am confused with the original binary rules in python.