Home
last modified time | relevance | path

Searched refs:UserString (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Doc/library/
Duserdict.rst152 :mod:`UserString` --- Class wrapper for string objects
155 .. module:: UserString
163 This :class:`~UserString.UserString` class from this module is available for backward
166 from the built-in :class:`str` type instead of using :class:`~UserString.UserString` (there
178 The :mod:`UserString` module defines the following classes:
181 .. class:: UserString([sequence])
185 accessible via the :attr:`data` attribute of :class:`~UserString.UserString` instances. The
188 :class:`~UserString.UserString` (or a subclass) or an arbitrary sequence which can be
192 The :class:`~UserString.UserString` class has been moved to the :mod:`collections`
200 This class is derived from the :class:`~UserString.UserString` above and redefines strings
[all …]
/external/python/cpython2/Lib/test/
Dtest_userstring.py6 from UserString import UserString, MutableString
16 type2test = UserString
76 s[1:-1] = UserString("a")
114 self.assertIsInstance(s2, UserString)
120 s += UserString("baz")
Dtest_py3kwarn.py433 import UserString
435 reset_module_registry(UserString)
439 self.assertRaises(DeprecationWarning, UserString.MutableString)
/external/python/cpython2/Lib/
DUserString.py13 class UserString(collections.Sequence): class
17 elif isinstance(seq, UserString):
30 if isinstance(string, UserString):
44 if isinstance(other, UserString):
133 class MutableString(UserString, collections.MutableSequence):
159 if isinstance(sub, UserString):
195 if isinstance(sub, UserString):
205 return UserString(self.data)
207 if isinstance(other, UserString):
/external/python/cpython2/Doc/whatsnew/
D2.0.rst1120 * :mod:`UserString`: A base class useful for deriving objects that behave like
/external/python/cpython2/Misc/
Dcheatsheet2008 UserString A wrapper to allow subclassing of built-in string class.
DHISTORY1964 - ``UserString.MutableString`` now supports negative indices in
9397 UserString - base class for deriving from the string type.
DNEWS9802 - Issue #2877: The UserString.MutableString class has been removed in