From: Fred Drake Date: Mon, 3 Apr 2000 15:02:35 +0000 (+0000) Subject: UserString section: X-Git-Tag: v1.6a2~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a0d844e76720cad4d26b85e8cc031f6365a5ef5;p=python UserString section: Small cleanups noted by Detlef Lannert . Make the spelling of Unicode always uppercase. --- diff --git a/Doc/lib/libuserdict.tex b/Doc/lib/libuserdict.tex index 1768f652ab..f859a279dd 100644 --- a/Doc/lib/libuserdict.tex +++ b/Doc/lib/libuserdict.tex @@ -82,23 +82,22 @@ can add new behaviours to strings. The \module{UserString} module defines the \class{UserString} class: \begin{classdesc}{UserString}{\optional{sequence}} -Return a class instance that simulates a string or an unicode string object. -The instance's content is kept in a regular string or unicode string +Return a class instance that simulates a string or a Unicode string object. +The instance's content is kept in a regular string or Unicode string object, which is accessible via the \member{data} attribute of \class{UserString} instances. The instance's contents are initially set to a copy of \var{sequence}. -\var{sequence} can be either a regular Python string or unicode string, +\var{sequence} can be either a regular Python string or Unicode string, an instance of \class{UserString} (or a subclass) or an arbitrary sequence which can be converted into a string. -supporting. \end{classdesc} In addition to supporting the methods and operations of string or -unicode objects (see section \ref{typesseq}), \class{UserString} instances +Unicode objects (see section \ref{typesseq}), \class{UserString} instances provide the following attribute: \begin{memberdesc}{data} -A real Python string or unicode object used to store the content of the +A real Python string or Unicode object used to store the content of the \class{UserString} class. \end{memberdesc}