[issue3008] Let bin() show floats
report at bugs.python.org
Fri Jun 6 01:37:07 CEST 2008
Alexandre Vassalotti <alexandre at peadrop.com> added the comment:
Kind of a cool hack. I am not sure how useful it is though. Personally,
I find ``struct.pack('d', f)`` slightly more educative (more useful
too), but that is just me.
And if you allow bin() to accept floats, will you make Python accept
binary float literals too?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list