Re: [Numpy-discussion] Float16 and PEP 3118

2010-12-03 Thread Pauli Virtanen
Fri, 03 Dec 2010 09:23:15 -0800, Mark Wiebe wrote: [clip] >> - 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. That's also easier to implement -- no changes are needed :) Pauli

Re: [Numpy-discussion] Float16 and PEP 3118

2010-12-03 Thread Mark Wiebe
On Thu, Dec 2, 2010 at 10:16 AM, Pauli Virtanen 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

Re: [Numpy-discussion] Float16 and PEP 3118

2010-12-02 Thread Pauli Virtanen
Thu, 02 Dec 2010 10:20:27 -0700, Charles R Harris wrote: > Now that the float16 type is in I was wondering if we should do anything > to support it in the PEP 3118 buffer interface. This would probably > affect the Cython folks as well as the people working on fixing up the > structure module

[Numpy-discussion] Float16 and PEP 3118

2010-12-02 Thread Charles R Harris
Hi Folks, Now that the float16 type is in I was wondering if we should do anything to support it in the PEP 3118 buffer interface. This would probably affect the Cython folks as well as the people working on fixing up the structure module for Python 3.x. There is