summaryrefslogtreecommitdiff
path: root/numpy/doc/basics.py
diff options
context:
space:
mode:
authorAntony Lee <anntzer.lee@gmail.com>2019-04-14 15:12:33 +0200
committerAntony Lee <anntzer.lee@gmail.com>2019-05-24 23:46:51 +0200
commitad1e0600e45b9fa71096d0a0f10c1474e003f373 (patch)
tree5c8efa002277c40280ff886e3d990060c4ad9d48 /numpy/doc/basics.py
parent9713e86cc65ebed96464f4d81bb2637857b84f44 (diff)
downloadnumpy-ad1e0600e45b9fa71096d0a0f10c1474e003f373.tar.gz
Deprecate collapsing shape-1 dtype fields to scalars.
Currently, a field specified as `[(name, dtype, 1)]` is interpreted as a scalar field (i.e., the same as `[(name, dtype)]` or `[(name, dtype, ()]`). This now raises a FutureWarning; in a future version, it will be interpreted as a shape-(1,) field, i.e. the same as `[(name, dtype, (1,))]` (consistently with `[(name, dtype, n)]` with `n>1`, which is already equivalent to `[(name, dtype, (n,)]`).
Diffstat (limited to 'numpy/doc/basics.py')
0 files changed, 0 insertions, 0 deletions