From fd512709912f4f2835c769af3b2d5a9851bdafa3 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Tue, 22 Jun 2010 02:46:49 +0000 Subject: [PATCH] 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. ........ --- Doc/library/stdtypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0