diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-15 03:10:36 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-15 03:10:36 +0000 |
commit | 0283b6f480b7239dc1390dadf29fcb5e1f2516e3 (patch) | |
tree | 6d75e6fb25fb7ff9e5668df1dfad9c7edba7a00e /numpy/core/_internal.py | |
parent | d04bb02f393f0122e52b804bf548e0e18a0a2ecc (diff) | |
download | numpy-0283b6f480b7239dc1390dadf29fcb5e1f2516e3.tar.gz |
Moved .dtypedescr to .dtype; .dtype->.dtype.type; .dtypestr ->.dtype.str; .dtypechar -> .dtype.char
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index 749e63432..09d913b68 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -3,7 +3,7 @@ # that implements more complicated stuff. import re -from multiarray import _flagdict, dtypedescr, ndarray +from multiarray import _flagdict, dtype, ndarray _defflags = _flagdict.keys() @@ -186,7 +186,7 @@ def _usefields(adict, align): num = int(obj[1]) if (num < 0): raise ValueError, "invalid offset." - format = dtypedescr(obj[0]) + format = dtype(obj[0]) if (format.itemsize == 0): raise ValueError, "all itemsizes must be fixed." if (n > 2): @@ -213,10 +213,10 @@ def _usefields(adict, align): else: titles.append(None) - return dtypedescr({"names" : names, - "formats" : formats, - "offsets" : offsets, - "titles" : titles}, align) + return dtype({"names" : names, + "formats" : formats, + "offsets" : offsets, + "titles" : titles}, align) # construct an array_protocol descriptor list @@ -228,7 +228,7 @@ def _usefields(adict, align): def _array_descr(descriptor): fields = descriptor.fields if fields is None: - return descriptor.dtypestr + return descriptor.str ordered_fields = [fields[x] + (x,) for x in fields[-1]] result = [] |