diff options
Diffstat (limited to 'Doc/lib/libuserdict.tex')
-rw-r--r-- | Doc/lib/libuserdict.tex | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/lib/libuserdict.tex b/Doc/lib/libuserdict.tex index 1768f65..f859a27 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} |