diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-12-19 17:48:51 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-12-19 17:48:51 (GMT) |
commit | a9da6d1a7b4eebf974746f740962eeabbabc8bcf (patch) | |
tree | 3e31f40402ee88c26412c9b1083eee16bdc5b526 /Doc | |
parent | d3e18b7113a6704950d7657134d770066d9542c5 (diff) | |
download | cpython-a9da6d1a7b4eebf974746f740962eeabbabc8bcf.zip cpython-a9da6d1a7b4eebf974746f740962eeabbabc8bcf.tar.gz cpython-a9da6d1a7b4eebf974746f740962eeabbabc8bcf.tar.bz2 |
Merged revisions 67857 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67857 | mark.dickinson | 2008-12-19 17:46:51 +0000 (Fri, 19 Dec 2008) | 2 lines
Fix typo in Python equivalent for bit_length.
........
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 de00c49..a1eb688 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -442,7 +442,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 |