diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-22 02:42:52 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-22 02:42:52 (GMT) |
commit | c5b81eebd80979ab9c52f57c81c240ecedbf9e7f (patch) | |
tree | cc41f45db320f90cdf2f38ca44bb7dd2180493e8 /Doc | |
parent | b00697e67c186cdcbc7fcb0f96d4d3304bdff7fa (diff) | |
download | cpython-c5b81eebd80979ab9c52f57c81c240ecedbf9e7f.zip cpython-c5b81eebd80979ab9c52f57c81c240ecedbf9e7f.tar.gz cpython-c5b81eebd80979ab9c52f57c81c240ecedbf9e7f.tar.bz2 |
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 b07c7f8..ad00c9a 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 |