diff options
author | Thomas Kluyver <thomas@kluyver.me.uk> | 2019-10-23 18:31:52 +0100 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2019-10-23 20:31:52 +0300 |
commit | ae4d2bcd5dc788ee13a50c445f73e21985ae40a9 (patch) | |
tree | 5d55274b2850ee61d6b947f9fc2c3efde7d6050d | |
parent | 2a488fe76a0f732dc418d03b452caace161673da (diff) | |
download | numpy-ae4d2bcd5dc788ee13a50c445f73e21985ae40a9.tar.gz |
Reword cautionary note about dtype.descr (#14763)
* Reword cautionary note about dtype.descr
Closes #14750
-rw-r--r-- | numpy/core/_add_newdocs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index b60edd1df..bd309f4a5 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -5327,7 +5327,8 @@ add_newdoc('numpy.core.multiarray', 'dtype', ('descr', `__array_interface__` attribute. Warning: This attribute exists specifically for `__array_interface__`, - and is not a datatype description compatible with `np.dtype`. + and passing it directly to `np.dtype` will not accurately reconstruct + some dtypes (e.g., scalar and subarray dtypes). Examples -------- |