Commit c5b81eeb authored by Senthil Kumaran's avatar Senthil Kumaran

Minor docs issue.

parent b00697e6
......@@ -452,7 +452,7 @@ Additional Methods on Integer Types
Equivalent to::
def bit_length(self):
s = bin(x) # binary representation: bin(-37) --> '-0b100101'
s = bin(self) # binary representation: bin(-37) --> '-0b100101'
s = s.lstrip('-0b') # remove leading zeros and minus sign
return len(s) # len('100101') --> 6
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment