summaryrefslogtreecommitdiff
path: root/numpy/lib/recfunctions.py
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2018-12-04 12:17:59 -0800
committerTyler Reddy <tyler.je.reddy@gmail.com>2018-12-14 10:14:05 -0800
commit19784177a61de75927a4934fd4cdd91afbb5b35c (patch)
treecf9f88bf968e48d0eebd2cd523cefd2bd4c2fd51 /numpy/lib/recfunctions.py
parent250861059b106371cb232456eeccd6d9e97d8f00 (diff)
downloadnumpy-19784177a61de75927a4934fd4cdd91afbb5b35c.tar.gz
MAINT: address several reviewer comments
Diffstat (limited to 'numpy/lib/recfunctions.py')
-rw-r--r--numpy/lib/recfunctions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/recfunctions.py b/numpy/lib/recfunctions.py
index 199d68649..844132333 100644
--- a/numpy/lib/recfunctions.py
+++ b/numpy/lib/recfunctions.py
@@ -838,7 +838,7 @@ def repack_fields(a, align=False, recurse=False):
... print("offsets:", [d.fields[name][1] for name in d.names])
... print("itemsize:", d.itemsize)
...
- >>> dt = np.dtype('u1,l,d', align=True)
+ >>> dt = np.dtype('u1,<i4,<f4', align=True)
>>> dt
dtype({'names':['f0','f1','f2'], 'formats':['u1','<i8','<f8'], 'offsets':[0,8,16], 'itemsize':24}, align=True)
>>> print_offsets(dt)