Searched refs:UserString (Results 1 – 25 of 25) sorted by relevance
/external/python/cpython2/Doc/library/ |
D | userdict.rst | 152 :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/ |
D | test_userstring.py | 6 from UserString import UserString, MutableString 16 type2test = UserString 76 s[1:-1] = UserString("a") 114 self.assertIsInstance(s2, UserString) 120 s += UserString("baz")
|
D | test_py3kwarn.py | 433 import UserString 435 reset_module_registry(UserString) 439 self.assertRaises(DeprecationWarning, UserString.MutableString)
|
/external/python/cpython2/Lib/ |
D | UserString.py | 13 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/ |
D | test_userstring.py | 7 from collections import UserString 15 type2test = UserString 43 class ustr2(UserString):
|
D | test_pprint.py | 1048 d = collections.UserString('') 1050 d = collections.UserString('the quick brown fox jumped over a lazy dog')
|
D | test_weakset.py | 4 from collections import UserString as ustr
|
D | test_collections.py | 17 from collections import UserDict, UserString, UserList 55 self._superset_test(UserString, str)
|
/external/python/cpython3/Lib/collections/ |
D | __init__.py | 1263 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/ |
D | collections.rst | 33 :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/ |
D | index.rst | 676 | ``UserString`` | :class:`py2:UserString.UserString` | :class:`py3:collections.User…
|
/external/python/six/ |
D | CHANGES | 200 - Issue #31: Add six.moves mapping for UserString.
|
/external/python/cpython3/Lib/ |
D | pprint.py | 525 _dispatch[_collections.UserString.__repr__] = _pprint_user_string
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0b1.rst | 204 collections.UserString now supports __getnewargs__(), __rmod__(),
|
D | 3.9.0a6.rst | 251 bytearray, and collections.UserString methods to remove affixes from a
|
D | 3.8.0b1.rst | 907 Fix bug in ``__rmod__`` of ``UserString`` - by Batuhan Taskaya.
|
D | 3.9.0a1.rst | 3342 Fix ``UserString.encode()`` to correctly return ``bytes`` rather than a 3343 ``UserString`` instance.
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b1.rst | 469 The UserString.MutableString class has been removed in Python 3.0.
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.9.rst | 170 ``bytes``, ``bytearray``, and ``collections.UserString`` methods have also been
|
D | 2.0.rst | 1120 * :mod:`UserString`: A base class useful for deriving objects that behave like
|
D | 3.5.rst | 930 The :class:`~collections.UserString` class now implements the
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.0.rst | 1120 * :mod:`UserString`: A base class useful for deriving objects that behave like
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 2008 UserString A wrapper to allow subclassing of built-in string class.
|
D | HISTORY | 1964 - ``UserString.MutableString`` now supports negative indices in 9397 UserString - base class for deriving from the string type.
|
/external/python/cpython3/Misc/ |
D | HISTORY | 16762 ``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.
|