diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-22 02:46:49 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-22 02:46:49 (GMT) |
commit | fd512709912f4f2835c769af3b2d5a9851bdafa3 (patch) | |
tree | 0f67fb48df66a73e3bf4cc17b0393e8001c8cd4b /Doc | |
parent | c2037d6ec8ae82aadcff2a193bcac135b39eb84c (diff) | |
download | cpython-fd512709912f4f2835c769af3b2d5a9851bdafa3.zip cpython-fd512709912f4f2835c769af3b2d5a9851bdafa3.tar.gz cpython-fd512709912f4f2835c769af3b2d5a9851bdafa3.tar.bz2 |
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.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 3b6851c..2a43b3d 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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 |