[issue3439] create a numbits() method for int and long types

Raymond Hettinger report at bugs.python.org
Fri Dec 19 19:16:39 CET 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Other possible wording:

 ... so that ``k`` is approximately ``1 + int(log(abs(x), 2))``.

----------
assignee: marketdickinson -> rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3439>
_______________________________________


More information about the Python-bugs-list mailing list