[issue9959] int(math.log(4,2)) == 1 instead of 2
Mark Dickinson
report at bugs.python.org
Tue Sep 28 09:23:41 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
> [n for n in range(100) if log(2**n) != n]
Should be:
[n for n in range(100) if log(2**n, 2) != n]
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9959>
_______________________________________
More information about the Python-bugs-list
mailing list