New submission from Eli Stevens <wickedg...@gmail.com>: Numpy 1.6.0 adds support for a half-float (16-bit) data type, but cannot currently export a buffer interface to the data since neither PEP 3118 nor the struct module (referenced by PEP 3118) support the data type.
I am proposing that the struct module be extended to support half floats, and will be providing a patch that implements that behavior. The current numpy implementation (1.6.0b1) uses the 'e' character to indicate half floats; I don't have a vested interest in what character is used. If consensus between CPython and numpy is reached for using a different character, I will update my patches (but I don't plan on participating in the bike shedding prior to that point). For reference: python-ideas thread: http://mail.python.org/pipermail/python-ideas/2011-March/009650.html numpy-discussion thread: http://mail.scipy.org/pipermail/numpy-discussion/2011-March/055667.html cython-user thread (less relevant to this issue specifically): http://groups.google.com/group/cython-users/browse_thread/thread/6bf811409cdab89e ---------- components: Library (Lib) messages: 132722 nosy: Eli.Stevens priority: normal severity: normal status: open title: Add half-float (16-bit) support to struct module type: feature request versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11734> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com