summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-06-22 02:57:23 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-06-22 02:57:23 (GMT)
commit0aae6dc6f5f405181b8620035fd38370c90546c4 (patch)
tree02f232cfaa26d46f339c25e574b002301e0efd50 /Doc
parentc5b81eebd80979ab9c52f57c81c240ecedbf9e7f (diff)
downloadcpython-0aae6dc6f5f405181b8620035fd38370c90546c4.zip
cpython-0aae6dc6f5f405181b8620035fd38370c90546c4.tar.gz
cpython-0aae6dc6f5f405181b8620035fd38370c90546c4.tar.bz2
Minor comment formatting.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index ad00c9a..a2682bb 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(self) # 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