summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorBrigitta Sipőcz <bsipocz@gmail.com>2022-05-20 18:32:55 -0700
committerBrigitta Sipőcz <bsipocz@gmail.com>2022-05-23 09:29:59 -0700
commit53379cd353fb7ab5840c3ee370c735fe61d6419c (patch)
treed3ef9af34179126f996ee3d66d347d0071ddbdd7 /doc/source
parenteece996beacc8d78bb48749fe515986ede95bf9e (diff)
downloadnumpy-53379cd353fb7ab5840c3ee370c735fe61d6419c.tar.gz
MAINT: Python <3.7 related cleanups
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/user/basics.rec.rst10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/source/user/basics.rec.rst b/doc/source/user/basics.rec.rst
index 98589b472..b3c7f9e4a 100644
--- a/doc/source/user/basics.rec.rst
+++ b/doc/source/user/basics.rec.rst
@@ -146,16 +146,14 @@ summary they are:
4. A dictionary of field names
- The use of this form of specification is discouraged, but documented here
- because older numpy code may use it. The keys of the dictionary are the
- field names and the values are tuples specifying type and offset::
+ The keys of the dictionary are the field names and the values are tuples
+ specifying type and offset::
>>> np.dtype({'col1': ('i1', 0), 'col2': ('f4', 1)})
dtype([('col1', 'i1'), ('col2', '<f4')])
- This form is discouraged because Python dictionaries do not preserve order
- in Python versions before Python 3.6, and the order of the fields in a
- structured dtype has meaning. :ref:`Field Titles <titles>` may be
+ This form was discouraged because Python dictionaries did not preserve order
+ in Python versions before Python 3.6. :ref:`Field Titles <titles>` may be
specified by using a 3-tuple, see below.
Manipulating and Displaying Structured Datatypes