Home
last modified time | relevance | path

Searched refs:_collections_abc (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython3/Lib/collections/
Dabc.py1 from _collections_abc import *
2 from _collections_abc import __all__
D__init__.py29 import _collections_abc
47 _collections_abc.MutableSequence.register(deque)
59 if name in _collections_abc.__all__:
60 obj = getattr(_collections_abc, name)
75 class _OrderedDictKeysView(_collections_abc.KeysView):
80 class _OrderedDictItemsView(_collections_abc.ItemsView):
86 class _OrderedDictValuesView(_collections_abc.ValuesView):
232 update = __update = _collections_abc.MutableMapping.update
246 __ne__ = _collections_abc.MutableMapping.__ne__
670 if isinstance(iterable, _collections_abc.Mapping):
[all …]
/external/tensorflow/tensorflow/python/util/
Dnest.py53 from tensorflow.python.util.compat import collections_abc as _collections_abc unknown
240 elif isinstance(iterable, (dict, _collections_abc.Mapping)):
1058 elif not (isinstance(shallow_tree, _collections_abc.Mapping) and
1059 isinstance(input_tree, _collections_abc.Mapping)):
1097 if isinstance(shallow_tree, _collections_abc.Mapping):
1669 _pywrap_utils.RegisterType("Mapping", _collections_abc.Mapping)
1670 _pywrap_utils.RegisterType("MutableMapping", _collections_abc.MutableMapping)
1671 _pywrap_utils.RegisterType("Sequence", _collections_abc.Sequence)
1672 _pywrap_utils.RegisterType("MappingView", _collections_abc.MappingView)
/external/python/cpython3/Lib/
Dweakref.py24 import _collections_abc # Import after _weakref to avoid circular import.
36 _collections_abc.Set.register(WeakSet)
37 _collections_abc.MutableSet.register(WeakSet)
93 class WeakValueDictionary(_collections_abc.MutableMapping):
318 if isinstance(other, _collections_abc.Mapping):
325 if isinstance(other, _collections_abc.Mapping):
354 class WeakKeyDictionary(_collections_abc.MutableMapping):
515 if isinstance(other, _collections_abc.Mapping):
522 if isinstance(other, _collections_abc.Mapping):
Dtypes.py275 import _collections_abc
283 if (isinstance(coro, _collections_abc.Generator) and
284 not isinstance(coro, _collections_abc.Coroutine)):
Dcontextlib.py4 import _collections_abc
33 return _collections_abc._check_methods(C, "__enter__", "__exit__")
55 return _collections_abc._check_methods(C, "__aenter__",
Dlocale.py17 import _collections_abc
217 if isinstance(val, _collections_abc.Mapping):
Dos.py29 from _collections_abc import _check_methods
664 from _collections_abc import MutableMapping, Mapping
Drandom.py53 from _collections_abc import Set as _Set, Sequence as _Sequence
Dpathlib.py9 from _collections_abc import Sequence
/external/tensorflow/tensorflow/python/data/util/
Dnest.py43 from tensorflow.python.util.compat import collections_abc as _collections_abc unknown
55 if isinstance(iterable, _collections_abc.Mapping):
286 if check_types and isinstance(shallow_tree, _collections_abc.Mapping):
/external/python/cpython3/Doc/library/
Dcollections.abc.rst13 **Source code:** :source:`Lib/_collections_abc.py`
/external/python/cpython3/Misc/
DHISTORY3790 - Issue #19218: Rename collections.abc to _collections_abc in order to