summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorMark Wiebe <mwiebe@enthought.com>2011-06-22 12:11:36 -0500
committerMark Wiebe <mwiebe@enthought.com>2011-06-22 12:11:36 -0500
commitb23337999abcb3ecfa648d86f0bf049ef7e58d3e (patch)
treec3d13b8211cb8345d1853fdc29d909fa34d8319e /numpy/add_newdocs.py
parent5382d2438c9a99053ae48ea7f5743d382a0677da (diff)
downloadnumpy-b23337999abcb3ecfa648d86f0bf049ef7e58d3e.tar.gz
DOC: dtype-struct: Document the changes to struct dtypes
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 58594b15a..760d258f2 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -5563,7 +5563,8 @@ add_newdoc('numpy.core.multiarray', 'dtype',
align : bool, optional
Add padding to the fields to match what a C compiler would output
for a similar C-struct. Can be ``True`` only if `obj` is a dictionary
- or a comma-separated string.
+ or a comma-separated string. If a struct dtype is being created,
+ this also sets a sticky alignment flag ``isalignedstruct``.
copy : bool, optional
Make a new copy of the data-type object. If ``False``, the result
may just be a reference to a built-in data-type object.
@@ -5787,6 +5788,14 @@ add_newdoc('numpy.core.multiarray', 'dtype', ('isnative',
"""))
+add_newdoc('numpy.core.multiarray', 'dtype', ('isalignedstruct',
+ """
+ Boolean indicating whether the dtype is a struct which maintains
+ field alignment. This flag is sticky, so when combining multiple
+ structs together, it is preserved and produces new dtypes which
+ are also aligned.
+ """))
+
add_newdoc('numpy.core.multiarray', 'dtype', ('itemsize',
"""
The element size of this data-type object.