[issue11734] Add half-float (16-bit) support to struct module

Paul Hoffman report at bugs.python.org
Tue Apr 23 19:41:25 CEST 2013


Paul Hoffman added the comment:

I *think* what you are saying is that there will be no float16 type, but the result of struct.unpack('eorwhatever', packed_stuff)[0] will be the same as struct.unpack('f', packed_stuff)[0], yes? If so, that's what I wanted. I don't want a new float16; I want the output of unpacking a half-precision to be the same as unpacking the other two.

I didn't see a statement like that earlier in the thread, but I could have missed it. Or maybe this was covered in msg132976?

----------

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


More information about the Python-bugs-list mailing list