Home
last modified time | relevance | path

Searched refs:MutableSequence (Results 1 – 24 of 24) sorted by relevance

/external/libchrome/third_party/jinja2/
Dsandbox.py82 from collections import MutableSet, MutableMapping, MutableSequence
85 _mutable_sequence_types += (MutableSequence,)
/external/python/cpython2/Lib/test/
Dtest_collections.py20 from collections import Sequence, MutableSequence
838 self.assertNotIsInstance(sample(), MutableSequence)
839 self.assertFalse(issubclass(sample, MutableSequence))
841 self.assertIsInstance(sample(), MutableSequence)
842 self.assertTrue(issubclass(sample, MutableSequence))
843 self.assertFalse(issubclass(basestring, MutableSequence))
844 self.validate_abstract_methods(MutableSequence, '__contains__', '__iter__',
/external/python/cpython3/Lib/
D_collections_abc.py945 class MutableSequence(Sequence): class
1010 MutableSequence.register(list)
1011 MutableSequence.register(bytearray) # Multiply inheriting, see ByteString
Dtyping.py1221 MutableSequence = _alias(collections.abc.MutableSequence, T) variable
/external/python/cpython2/Lib/
D_abcoll.py640 class MutableSequence(Sequence): class
695 MutableSequence.register(list)
DUserList.py5 class UserList(collections.MutableSequence):
DUserString.py133 class MutableString(UserString, collections.MutableSequence):
/external/python/cpython3/Lib/test/
Dtest_collections.py27 from collections.abc import Sequence, MutableSequence
1690 self.assertNotIsInstance(sample(), MutableSequence)
1691 self.assertFalse(issubclass(sample, MutableSequence))
1693 self.assertIsInstance(sample(), MutableSequence)
1694 self.assertTrue(issubclass(sample, MutableSequence))
1695 self.assertFalse(issubclass(str, MutableSequence))
1696 self.validate_abstract_methods(MutableSequence, '__contains__', '__iter__',
1702 class MutableSequenceSubclass(MutableSequence):
Dtest_functools.py1763 c.MutableSequence.register(D)
1764 bases = [c.MutableSequence, c.MutableMapping]
1767 self.assertEqual(m, [D, c.MutableSequence, c.Sequence, c.Reversible,
1818 g.register(c.MutableSequence, lambda obj: "mutablesequence")
1992 c.MutableSequence.register(R)
1999 @i.register(c.MutableSequence)
Dtest_typing.py1993 self.assertIsInstance([], typing.MutableSequence)
1994 self.assertNotIsInstance((), typing.MutableSequence)
2342 class S(collections.abc.MutableSequence): ...
2343 self.assertIsSubclass(S, typing.MutableSequence)
/external/toolchain-utils/automation/common/
Dcommand.py74 class AbstractCommandContainer(collections.MutableSequence):
/external/python/cpython3/Doc/library/
Dcollections.abc.rst55 :class:`MutableSequence` :class:`Sequence` ``__getitem__``, Inherited :class:`Sequenc…
147 MutableSequence
Dtyping.rst584 .. class:: MutableSequence(Sequence[T])
586 A generic version of :class:`collections.abc.MutableSequence`.
598 .. class:: Deque(deque, MutableSequence[T])
604 .. class:: List(list, MutableSequence[T])
Dstdtypes.rst1026 The :class:`collections.abc.MutableSequence` ABC is provided to make it
/external/protobuf/python/google/protobuf/internal/
Dcontainers.py340 collections.MutableSequence.register(BaseContainer)
Dmessage_test.py559 self.assertIsInstance(m.repeated_int32, collections.MutableSequence)
561 collections.MutableSequence)
/external/python/cpython3/Lib/collections/
D__init__.py34 _collections_abc.MutableSequence.register(deque)
1062 class UserList(_collections_abc.MutableSequence):
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a3.rst273 copy(). This allows deques to be registered as a MutableSequence and it
/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures.py356 class _ListWrapper(List, collections.MutableSequence,
/external/python/cpython2/Doc/library/
Dcollections.rst911 :class:`MutableSequence` :class:`Sequence` ``__getitem__``, Inherited :class:`Sequenc…
966 MutableSequence
/external/python/cpython3/Doc/whatsnew/
D3.0.rst272 :class:`collections.MutableSequence`.
537 and :class:`collections.MutableSequence` ABCs, respectively.
D3.3.rst804 :class:`~collections.abc.MutableSequence` now also defines a
805 :meth:`~collections.abc.MutableSequence.clear` method (:issue:`11388`).
D3.5.rst917 This allows deques to be recognized as a :class:`~collections.abc.MutableSequence`
/external/python/cpython3/Misc/
DHISTORY10084 - Issue #11388: Added a clear() method to MutableSequence