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

Eli Stevens report at bugs.python.org
Tue Apr 5 20:08:20 CEST 2011


Eli Stevens <wickedgrey at gmail.com> added the comment:

All four changes suggested via review from Mark Dickinson have been made.  One note: the else if (!(e == 0 && f == 0.0)) { change was made; this makes the Pack2 function parallel the Pack4 function slightly less.  I agree that it's cleaner this way, but I've left the original if in as a comment for comparison to Pack4.  I'll remove the comment if it's decided that it's better to be clean than parallel.

The suggested test cases were added in the v4 patch, just in case that wasn't clear.

I'm going to assume that my questions about _struct.c aren't issues unless someone explicitly says they are.

Thanks for all of the review and feedback!  :)

----------
Added file: http://bugs.python.org/file21544/cpython-struct-float16-v5.patch

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


More information about the Python-bugs-list mailing list