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

Mark Dickinson report at bugs.python.org
Tue Apr 5 13:36:54 CEST 2011


Mark Dickinson <dickinsm at gmail.com> added the comment:

> There's no disagreement, since they're different cases. [...]

What he said.

> Should I change the _PyFloat_Pack4 implementation while I'm in there?

No;  let's keep the patch as simple as possible.  We can open a separate issue for fixing _Pack4 if necessary.  Is the failure to round-to-even only for legacy formats, or is it for IEEE formats as well?  If the former, it's difficult to care much;  if the latter, it should definitely be fixed, but not as part of this issue.

> Made the _PyFloat_Pack2 match the algo in _PyFloat_Pack4, and did
> similar for Unpack.

Thanks;  haven't looked at the new patch yet, but hope to do so in the next few days.

----------

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


More information about the Python-bugs-list mailing list