From: Senthil Kumaran Date: Tue, 22 Jun 2010 02:46:49 +0000 (+0000) Subject: Merged revisions 82146 via svnmerge from X-Git-Tag: v3.1.3rc1~605 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd512709912f4f2835c769af3b2d5a9851bdafa3;p=python 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. ........ --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 3b6851c6d1..2a43b3d68c 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