Merged revisions 82146 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82146 | senthil.kumaran | 2010-06-22 08:12:52 +0530 (Tue, 22 Jun 2010) | 3 lines

  Minor docs issue.
........
This commit is contained in:
Senthil Kumaran 2010-06-22 02:46:49 +00:00
parent c2037d6ec8
commit fd51270991
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,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