From c5b81eebd80979ab9c52f57c81c240ecedbf9e7f Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Tue, 22 Jun 2010 02:42:52 +0000 Subject: [PATCH] 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 b07c7f8b53..ad00c9a24d 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -452,7 +452,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