[Python-checkins] r82146 - python/branches/py3k/Doc/library/stdtypes.rst
senthil.kumaran
python-checkins at python.org
Tue Jun 22 04:42:52 CEST 2010
Author: senthil.kumaran
Date: Tue Jun 22 04:42:52 2010
New Revision: 82146
Log:
Minor docs issue.
Modified:
python/branches/py3k/Doc/library/stdtypes.rst
Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst (original)
+++ python/branches/py3k/Doc/library/stdtypes.rst Tue Jun 22 04:42:52 2010
@@ -452,7 +452,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