From 6e91f0f59818c5bc9021f1913764bb667811fbcc Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Fri, 13 Nov 2009 17:50:02 +0000 Subject: second set of checkins from doc editor --- doc/source/reference/arrays.classes.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/source/reference/arrays.classes.rst') diff --git a/doc/source/reference/arrays.classes.rst b/doc/source/reference/arrays.classes.rst index 6d5e7bde0..51d97e53a 100644 --- a/doc/source/reference/arrays.classes.rst +++ b/doc/source/reference/arrays.classes.rst @@ -230,8 +230,8 @@ Character arrays (:mod:`numpy.char`) .. note:: The chararray module exists for backwards compatibility with Numarray, it is not recommended for new development. If one needs - arrays of strings, use arrays of `dtype` `object_`, `string_` or - `unicode_`. + arrays of strings, use arrays of `dtype` `object_`, `str` or + `unicode`. These are enhanced arrays of either :class:`string_` type or :class:`unicode_` type. These arrays inherit from the @@ -242,7 +242,7 @@ character type. In addition, the :class:`chararray` has all of the standard :class:`string ` (and :class:`unicode`) methods, executing them on an element-by-element basis. Perhaps the easiest way to create a chararray is to use :meth:`self.view(chararray) -` where *self* is an ndarray of string or unicode +` where *self* is an ndarray of str or unicode data-type. However, a chararray can also be created using the :meth:`numpy.chararray` constructor, or via the :func:`numpy.char.array ` function: @@ -253,7 +253,7 @@ data-type. However, a chararray can also be created using the chararray core.defchararray.array -Another difference with the standard ndarray of string data-type is +Another difference with the standard ndarray of str data-type is that the chararray inherits the feature introduced by Numarray that white-space at the end of any element in the array will be ignored on item retrieval and comparison operations. -- cgit v1.2.1