[Python-checkins] r82147 - in python/branches/release31-maint: Doc/library/stdtypes.rst

senthil.kumaran python-checkins at python.org
Tue Jun 22 04:46:49 CEST 2010


Author: senthil.kumaran
Date: Tue Jun 22 04:46:49 2010
New Revision: 82147

Log:
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.
........


Modified:
   python/branches/release31-maint/   (props changed)
   python/branches/release31-maint/Doc/library/stdtypes.rst

Modified: python/branches/release31-maint/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/stdtypes.rst	(original)
+++ python/branches/release31-maint/Doc/library/stdtypes.rst	Tue Jun 22 04:46:49 2010
@@ -451,7 +451,7 @@
     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
 


More information about the Python-checkins mailing list