diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-12-14 09:43:19 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-12-14 09:43:19 +0000 |
commit | 22f9b8625e2de47755ba9a308478a373476aac4f (patch) | |
tree | 47b0e6579b8294a085aa6faa6657a4a23c25e1a4 /scipy/base/src/arrayobject.c | |
parent | fe36395c1f22de9031392f7770511a9269fb78ef (diff) | |
download | numpy-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.c | 1 |
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}, |