[issue3008] Let bin() show floats

Antoine Pitrou report at bugs.python.org
Fri May 30 20:32:07 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

> What would you say to adding float-capable bin/oct/hex (+ maybe tobase)
> to the math module?

Why not indeed.
However, as I said, if the intent is float-specific (and it is, unless
there is another inexact numeric type which warrants a specific bin()
output), then why not make it a method of float?

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


More information about the Python-bugs-list mailing list