diff options
author | Jaime Fernandez <jaime.frio@gmail.com> | 2015-05-06 20:47:17 -0700 |
---|---|---|
committer | Jaime Fernandez <jaime.frio@gmail.com> | 2015-05-06 20:47:17 -0700 |
commit | 498acae7f5746c899013bf9f85412beb26778463 (patch) | |
tree | 5d392cf3bd54688b89f6f12964c8a85a6ebccfd2 | |
parent | d3a2991130938e05acc05f3beadc1a0cd33c1eb3 (diff) | |
download | numpy-498acae7f5746c899013bf9f85412beb26778463.tar.gz |
DOC: Document string dtype descriptor behavior
-rw-r--r-- | doc/source/reference/arrays.dtypes.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/source/reference/arrays.dtypes.rst b/doc/source/reference/arrays.dtypes.rst index a43c23218..28e2d4f82 100644 --- a/doc/source/reference/arrays.dtypes.rst +++ b/doc/source/reference/arrays.dtypes.rst @@ -46,7 +46,7 @@ Structured data types are formed by creating a data type whose which it can be :ref:`accessed <arrays.indexing.fields>`. The parent data type should be of sufficient size to contain all its fields; the parent is nearly always based on the :class:`void` type which allows -an arbitrary item size. Structured data types may also contain nested +an arbitrary item size. Structured data types may also contain nested structured sub-array data types in their fields. .. index:: @@ -219,10 +219,10 @@ One-character strings Array-protocol type strings (see :ref:`arrays.interface`) The first character specifies the kind of data and the remaining - characters specify the number of bytes per item. The item size may - be ignored for some kinds (i.e., boolean, object), rounded to the - next supported size (float, complex), or interpreted as the number - of characters (Unicode). The supported kinds are + characters specify the number of bytes per item, except for Unicode, + where it is interpreted as the number of characters. The item size + must correspond to an existing type, or an error will be raised. The + supported kinds are ================ ======================== ``'b'`` boolean @@ -431,7 +431,7 @@ Type strings Both arguments must be convertible to data-type objects in this case. The *base_dtype* is the data-type object that the new data-type builds on. This is how you could assign named fields to - any built-in data-type object, as done in + any built-in data-type object, as done in :ref:`record arrays <arrays.classes.rec>`. .. admonition:: Example |