From 66791605e18aaf2773067d2a3e0bf8a12a566db9 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Thu, 15 Dec 2022 11:23:37 -0700 Subject: Update doc/source/reference/arrays.dtypes.rst Co-authored-by: Ross Barnowski --- doc/source/reference/arrays.dtypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/source/reference') diff --git a/doc/source/reference/arrays.dtypes.rst b/doc/source/reference/arrays.dtypes.rst index 944542278..f4218ce86 100644 --- a/doc/source/reference/arrays.dtypes.rst +++ b/doc/source/reference/arrays.dtypes.rst @@ -264,7 +264,7 @@ Array-protocol type strings (see :ref:`arrays.interface`) .. admonition:: Note on string types For backward compatibility with existing code originally written to support - Python 2 ``S`` and ``a`` typestrings are zero-terminated bytes and + Python 2, ``S`` and ``a`` typestrings are zero-terminated bytes and `numpy.string_` continues to alias `numpy.bytes_`. For unicode strings, use ``U``, `numpy.str_`, or `numpy.unicode_`. For signed bytes that do not need zero-termination ``b`` or ``i1`` can be used. -- cgit v1.2.1