summaryrefslogtreecommitdiff
path: root/scipy/base/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-12-14 09:43:19 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-12-14 09:43:19 +0000
commit22f9b8625e2de47755ba9a308478a373476aac4f (patch)
tree47b0e6579b8294a085aa6faa6657a4a23c25e1a4 /scipy/base/src/arrayobject.c
parentfe36395c1f22de9031392f7770511a9269fb78ef (diff)
downloadnumpy-22f9b8625e2de47755ba9a308478a373476aac4f.tar.gz
Fixed error. Added byteorder attribute and allow byte-order prefix in string->dtypedescr conversions.
Diffstat (limited to 'scipy/base/src/arrayobject.c')
-rw-r--r--scipy/base/src/arrayobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scipy/base/src/arrayobject.c b/scipy/base/src/arrayobject.c
index 1853505d9..c4aefb375 100644
--- a/scipy/base/src/arrayobject.c
+++ b/scipy/base/src/arrayobject.c
@@ -7944,6 +7944,7 @@ static PyMemberDef arraydescr_members[] = {
{"dtypekind", T_CHAR, offsetof(PyArray_Descr, kind), RO, NULL},
{"dtypechar", T_CHAR, offsetof(PyArray_Descr, type), RO, NULL},
{"dtypenum", T_INT, offsetof(PyArray_Descr, type_num), RO, NULL},
+ {"byteorder", T_CHAR, offsetof(PyArray_Descr, byteorder), RO, NULL},
{"itemsize", T_INT, offsetof(PyArray_Descr, elsize), RO, NULL},
{"alignment", T_INT, offsetof(PyArray_Descr, alignment), RO, NULL},
{"fields", T_OBJECT, offsetof(PyArray_Descr, fields), RO, NULL},