[issue3008] Let bin() show floats

Raymond Hettinger report at bugs.python.org
Fri Jun 20 10:54:40 CEST 2008

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

The other reviewers asked for:
* same treatment for oct() and hex()
* platform independent exact representation of floats
* fixed-size exponential style output instead of tons of leading zeros
* output that round-trips through eval()
* use Py2.6 octal format in 2.6, and 3.0 format in 3.0

Attaching a patch with tests.

Added file: http://bugs.python.org/file10668/float3.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list