From c0014729f973f1baa6d614154aa0d21b3fb79291 Mon Sep 17 00:00:00 2001 From: Hans Meine Date: Sat, 15 Mar 2014 07:11:58 +0100 Subject: explain character codes of dtype.kind "one of 'biufcSUV'" is not very helpful if it stands alone, also the 'O' typecode was missing. --- numpy/add_newdocs.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'numpy/add_newdocs.py') diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 23faa3290..86ea4b8b6 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -6118,7 +6118,19 @@ add_newdoc('numpy.core.multiarray', 'dtype', ('itemsize', add_newdoc('numpy.core.multiarray', 'dtype', ('kind', """ - A character code (one of 'biufcSUV') identifying the general kind of data. + A character code (one of 'biufcOSUV') identifying the general kind of data. + + = ====================== + b boolean + i signed integer + u unsigned integer + f floating-point + c complex floating-point + O object + S (byte-)string + U Unicode + V void + = ====================== """)) -- cgit v1.2.1