This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Eli.Stevens
Recipients Eli.Stevens
Date 2011-04-01.01:00:14
SpamBayes Score 4.5189794e-09
Marked as misclassified No
Message-id <>
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:

numpy-discussion thread:

cython-user thread (less relevant to this issue specifically):
Date User Action Args
2011-04-01 01:00:17Eli.Stevenssetrecipients: + Eli.Stevens
2011-04-01 01:00:17Eli.Stevenssetmessageid: <>
2011-04-01 01:00:15Eli.Stevenslinkissue11734 messages
2011-04-01 01:00:14Eli.Stevenscreate