Searched refs:UserString (Results 1 – 21 of 21) 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
|
D | test_pprint.py | 982 d = collections.UserString('') 984 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 | 18 from collections import UserDict, UserString, UserList 42 self._superset_test(UserString, str)
|
/external/python/cpython3/Lib/collections/ |
D | __init__.py | 1135 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/ |
D | collections.rst | 33 :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/ |
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 | 486 _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__(),
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b1.rst | 469 The UserString.MutableString class has been removed in Python 3.0.
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.0.rst | 1120 * :mod:`UserString`: A base class useful for deriving objects that behave like
|
/external/python/cpython3/Doc/whatsnew/ |
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/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.
|