Home
last modified time | relevance | path

Searched refs:UserString (Results 1 – 25 of 25) 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
43 class ustr2(UserString):
Dtest_pprint.py1048 d = collections.UserString('')
1050 d = collections.UserString('the quick brown fox jumped over a lazy dog')
Dtest_weakset.py4 from collections import UserString as ustr
Dtest_collections.py17 from collections import UserDict, UserString, UserList
55 self._superset_test(UserString, str)
/external/python/cpython3/Lib/collections/
D__init__.py1263 class UserString(_collections_abc.Sequence): class
1268 elif isinstance(seq, UserString):
1295 if isinstance(string, UserString):
1300 if isinstance(string, UserString):
1305 if isinstance(string, UserString):
1310 if isinstance(string, UserString):
1315 if isinstance(string, UserString):
1320 if isinstance(char, UserString):
1331 if isinstance(other, UserString):
1364 if isinstance(sub, UserString):
[all …]
/external/python/cpython3/Doc/library/
Dcollections.rst33 :class:`UserString` wrapper around string objects for easier string subclassing
1242 :class:`UserString` objects
1245 The class, :class:`UserString` acts as a wrapper around string objects.
1251 .. class:: UserString(seq)
1255 :attr:`data` attribute of :class:`UserString` instances. The instance's
1261 :class:`UserString` instances provide the following attribute:
1266 :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.py525 _dispatch[_collections.UserString.__repr__] = _pprint_user_string
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b1.rst204 collections.UserString now supports __getnewargs__(), __rmod__(),
D3.9.0a6.rst251 bytearray, and collections.UserString methods to remove affixes from a
D3.8.0b1.rst907 Fix bug in ``__rmod__`` of ``UserString`` - by Batuhan Taskaya.
D3.9.0a1.rst3342 Fix ``UserString.encode()`` to correctly return ``bytes`` rather than a
3343 ``UserString`` instance.
/external/python/cpython2/Misc/NEWS.d/
D2.6b1.rst469 The UserString.MutableString class has been removed in Python 3.0.
/external/python/cpython3/Doc/whatsnew/
D3.9.rst170 ``bytes``, ``bytearray``, and ``collections.UserString`` methods have also been
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/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.
/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.