<div class="gmail_quote">On Thu, Dec 2, 2010 at 10:16 AM, Pauli Virtanen <span dir="ltr"><<a href="mailto:pav@iki.fi">pav@iki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Before introducing a PEP 3118 type code for half floats in the PEP, one</div>
would need to argue the Python people to add it to the struct module.<br>
<br>
Before that, the choices probably are:<br>
<br>
- refuse to export buffers containing half floats<br></blockquote><div><br></div><div>I think this is the better option, code that needs to do this can create an int16 view for the time being. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

- export half floats as two bytes<br></blockquote><div><br></div><div>This would throw away the byte-order, a problem much harder to track down for the user than the other option.</div><div><br></div><div>-Mark</div></div>