[issue3008] Let bin/oct/hex show floats
report at bugs.python.org
Mon Jun 30 19:24:11 CEST 2008
Mark Dickinson <dickinsm at gmail.com> added the comment:
Here's an updated Python version of toHex and fromHex; fixes a bug in the
previous version of fromHex for hex floats starting with an upper case hex
digit. I'm not sure how useful this is, but I thought I might as well
post the code.
I also have tests for these; to follow.
I'd be happy to help out with the C version once the API is decided on; I
have far too much time on my hands right now. Though I'm assuming Raymond
will beat me to it.
Added file: http://bugs.python.org/file10785/hex_float.py
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list