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

Terry J. Reedy report at bugs.python.org
Tue Jun 22 23:34:17 CEST 2010


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Whoops, sorry to create confusion when I was trying to put this issue to rest completely. Let me try better. 

In his last message, Raymond said "Other possible wording:
 ... so that ``k`` is approximately ``1 + int(log(abs(x), 2))``."

That is what the current 2.7rc2 doc says.

In response, Mark said "I guess that could work." but quoted footnote 2, which implied that 'int' should be changed to 'trunc' in the example above. 

This implied to me that there was a lingering .numbits doc issue.
But footnote 2 is now changed, so I not longer think there is a doc issue, so I reported that, so no one else would think so.

I hope this is the end of this.

----------

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


More information about the Python-bugs-list mailing list