diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-10-24 14:00:46 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2020-10-24 14:00:46 +0100 |
commit | b0f1cc13a04dd8225f6e6fb90604c7d8379aa3a3 (patch) | |
tree | b15713ba24e6081b396c192105f9b76ae7ef287e /doc/source/reference/arrays.scalars.rst | |
parent | beac56601587e26563d83b0a47cd0b1f006bf5d6 (diff) | |
download | numpy-b0f1cc13a04dd8225f6e6fb90604c7d8379aa3a3.tar.gz |
DOC: Tidy up references to str_ / bytes_
This:
* Fixes some broken references
* Cleans up some use of Python 2 aliases:
* Switches references to `np.string_` to describe `np.bytes_` instead
* Switches references to `np.unicode_` to describe `np.str_` instead
Diffstat (limited to 'doc/source/reference/arrays.scalars.rst')
-rw-r--r-- | doc/source/reference/arrays.scalars.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/reference/arrays.scalars.rst b/doc/source/reference/arrays.scalars.rst index 13d117af2..24393f1e7 100644 --- a/doc/source/reference/arrays.scalars.rst +++ b/doc/source/reference/arrays.scalars.rst @@ -30,8 +30,8 @@ present can be determined using other members of the data type hierarchy. Thus, for example ``isinstance(val, np.complexfloating)`` will return :py:data:`True` if *val* is a complex valued type, while ``isinstance(val, np.flexible)`` will return true if *val* is one -of the flexible itemsize array types (:class:`string`, -:class:`unicode`, :class:`void`). +of the flexible itemsize array types (:class:`str_`, +:class:`bytes_`, :class:`void`). .. figure:: figures/dtype-hierarchy.png |