So in the manual, it says
Of course, Python doesn't use 8-bit numbers. It USED to use however many bits were native to your machine, but since that was non-portable, it has recently switched to using an INFINITE number of bits. Thus the number -5 is treated by bitwise operators as if it were written "...1111111111111111111010".
How?! Specifically, how do they do this efficiently?
Jeff
Reputation Points: 92
Solved Threads: 156
Practically a Master Poster
Offline 608 posts
since Jul 2006