On Thu, Dec 2, 2010 at 10:16 AM, Pauli Virtanen firstname.lastname@example.org wrote:
Before introducing a PEP 3118 type code for half floats in the PEP, one would need to argue the Python people to add it to the struct module.
Before that, the choices probably are:
- refuse to export buffers containing half floats
I think this is the better option, code that needs to do this can create an int16 view for the time being.
- export half floats as two bytes
This would throw away the byte-order, a problem much harder to track down for the user than the other option.