]> granicus.if.org Git - python/commitdiff
Merged revisions 82146 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Tue, 22 Jun 2010 02:46:49 +0000 (02:46 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Tue, 22 Jun 2010 02:46:49 +0000 (02:46 +0000)
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.
........

Doc/library/stdtypes.rst

index 3b6851c6d1eab5a1e17d5c9f1af100b456a03a7e..2a43b3d68cbce6b0e8630778f033afc042fcc62e 100644 (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