Home
last modified time | relevance | path

Searched refs:UserString (Results 1 – 21 of 21) 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/cpython3/Lib/test/
Dtest_userstring.py7 from collections import UserString
15 type2test = UserString
Dtest_pprint.py982 d = collections.UserString('')
984 d = collections.UserString('the quick brown fox jumped over a lazy dog')
Dtest_weakset.py4 from collections import UserString as ustr
Dtest_collections.py18 from collections import UserDict, UserString, UserList
42 self._superset_test(UserString, str)
/external/python/cpython3/Lib/collections/
D__init__.py1135 class UserString(_collections_abc.Sequence): class
1139 elif isinstance(seq, UserString):
1153 if isinstance(string, UserString):
1157 if isinstance(string, UserString):
1161 if isinstance(string, UserString):
1165 if isinstance(string, UserString):
1169 if isinstance(string, UserString):
1174 if isinstance(char, UserString):
1181 if isinstance(other, UserString):
1205 if isinstance(sub, UserString):
[all …]
/external/python/cpython3/Doc/library/
Dcollections.rst33 :class:`UserString` wrapper around string objects for easier string subclassing
1220 :class:`UserString` objects
1223 The class, :class:`UserString` acts as a wrapper around string objects.
1229 .. class:: UserString(seq)
1233 :attr:`data` attribute of :class:`UserString` instances. The instance's
1239 :class:`UserString` instances provide the following attribute:
1244 :class:`UserString` class.
/external/python/six/documentation/
Dindex.rst676 | ``UserString`` | :class:`py2:UserString.UserString` | :class:`py3:collections.User…
/external/python/six/
DCHANGES200 - Issue #31: Add six.moves mapping for UserString.
/external/python/cpython3/Lib/
Dpprint.py486 _dispatch[_collections.UserString.__repr__] = _pprint_user_string
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b1.rst204 collections.UserString now supports __getnewargs__(), __rmod__(),
/external/python/cpython2/Misc/NEWS.d/
D2.6b1.rst469 The UserString.MutableString class has been removed in Python 3.0.
/external/python/cpython2/Doc/whatsnew/
D2.0.rst1120 * :mod:`UserString`: A base class useful for deriving objects that behave like
/external/python/cpython3/Doc/whatsnew/
D2.0.rst1120 * :mod:`UserString`: A base class useful for deriving objects that behave like
D3.5.rst930 The :class:`~collections.UserString` class now implements the
/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.
/external/python/cpython3/Misc/
DHISTORY16762 ``UserList`` and ``UserString``.
17046 UserString and UserList to the collections module. The
19348 - ``UserString.MutableString`` now supports negative indices in
26776 UserString - base class for deriving from the string type.