Home
last modified time | relevance | path

Searched refs:__contains__ (Results 1 – 25 of 248) sorted by relevance

12345678910

/external/python/cpython2/Lib/
Dsets.py216 common = ifilter(big._data.__contains__, little)
241 for elt in ifilterfalse(otherdata.__contains__, selfdata):
243 for elt in ifilterfalse(selfdata.__contains__, otherdata):
268 for elt in ifilterfalse(otherdata.__contains__, self):
274 def __contains__(self, element): member in BaseSet
294 for elt in ifilterfalse(other._data.__contains__, self):
303 for elt in ifilterfalse(self._data.__contains__, other):
484 for elt in ifilter(data.__contains__, other):
D_abcoll.py110 def __contains__(self, x): member in Container
386 def __contains__(self, key): member in Mapping
449 def __contains__(self, key): member in KeysView
464 def __contains__(self, item): member in ItemsView
481 def __contains__(self, value): member in ValuesView
611 def __contains__(self, value): member in Sequence
Dfilecmp.py134 self.common = map(a.__getitem__, ifilter(b.__contains__, a))
135 self.left_only = map(a.__getitem__, ifilterfalse(b.__contains__, a))
136 self.right_only = map(b.__getitem__, ifilterfalse(a.__contains__, b))
278 return list(ifilterfalse(skip.__contains__, flist))
Dkeyword.py51 iskeyword = frozenset(kwlist).__contains__
/external/python/cpython3/Lib/
Dkeyword.py62 iskeyword = frozenset(kwlist).__contains__
63 issoftkeyword = frozenset(softkwlist).__contains__
Dfilecmp.py147 self.common = list(map(a.__getitem__, filter(b.__contains__, a)))
148 self.left_only = list(map(a.__getitem__, filterfalse(b.__contains__, a)))
149 self.right_only = list(map(b.__getitem__, filterfalse(a.__contains__, b)))
295 return list(filterfalse(skip.__contains__, flist))
D_collections_abc.py393 def __contains__(self, x): member in Container
823 def __contains__(self, key): member in Mapping
877 def __contains__(self, key): member in KeysView
895 def __contains__(self, item): member in ItemsView
916 def __contains__(self, value): member in ValuesView
1044 def __contains__(self, value): member in Sequence
/external/python/cpython3/Lib/test/
Dtest_contains.py11 def __contains__(self, el): member in myset
85 def __contains__(self, other): member in TestContains.test_block_fallback.ByContains
102 __contains__ = None variable in TestContains.test_block_fallback.BlockContains
Dtest_collections.py236 def __contains__(self, key): member in TestChainMap.test_new_child.lowerdict
239 return dict.__contains__(self, key)
1066 def __contains__(self, item): member in TestOneTrickPonyABCs.test_Collection.Col
1082 def __contains__(self, item): return False member in TestOneTrickPonyABCs.test_Collection.ColNoIter
1085 def __contains__(self, item): return False member in TestOneTrickPonyABCs.test_Collection.ColNoSize
1098 def __contains__(self): return False member in TestOneTrickPonyABCs.test_Collection.SizeBlock
1102 def __contains__(self): return True member in TestOneTrickPonyABCs.test_Collection.IterBlock
1114 def __contains__(self, item): member in TestOneTrickPonyABCs.test_Collection.ColImpl
1117 __contains__ = None variable in TestOneTrickPonyABCs.test_Collection.NonCol
1381 def __contains__(self, item): member in WithSet
[all …]
/external/python/cpython3/Doc/library/
Dcollections.abc.rst77 ``__contains__``, ``__iter__``, and ``__reversed__`` because the
123 :class:`Container` [1]_ ``__contains__``
131 :class:`Collection` [1]_ :class:`Sized`, ``__contains__``,
135 :class:`Sequence` :class:`Reversible`, ``__getitem__``, ``__contains__``, ``_…
147 :class:`Set` :class:`Collection` ``__contains__``, ``__le__``, ``__lt__`…
151 :class:`MutableSet` :class:`Set` ``__contains__``, Inherited :class:`Set…
157 :class:`Mapping` :class:`Collection` ``__getitem__``, ``__contains__``, ``k…
169 :class:`ItemsView` :class:`MappingView`, ``__contains__``,
171 :class:`KeysView` :class:`MappingView`, ``__contains__``,
173 :class:`ValuesView` :class:`MappingView`, ``__contains__``, ``_…
[all …]
/external/python/setuptools/setuptools/_distutils/
D_collections.py52 def __contains__(self, other): member in DictStack
53 return collections.abc.Mapping.__contains__(self, other)
/external/python/setuptools/setuptools/_vendor/importlib_metadata/
D_text.py82 def __contains__(self, other): member in FoldedCase
83 return super().lower().__contains__(other.lower())
D_itertools.py11 for element in filterfalse(seen.__contains__, iterable):
D_meta.py12 def __contains__(self, item: str) -> bool: member in PackageMetadata
/external/python/cpython3/Lib/importlib/metadata/
D_text.py82 def __contains__(self, other): member in FoldedCase
83 return super(FoldedCase, self).lower().__contains__(other.lower())
D_itertools.py11 for element in filterfalse(seen.__contains__, iterable):
D_meta.py11 def __contains__(self, item: str) -> bool: member in PackageMetadata
/external/python/cpython3/PC/layout/support/
Dfilesets.py27 def __contains__(self, f): member in FileStemSet
61 def __contains__(self, f): member in FileSuffixSet
/external/openthread/third_party/mbedtls/repo/scripts/
Dconfig.py66 def __contains__(self, name): member in Config
76 return all(self.__contains__(name) for name in names)
80 return any(self.__contains__(name) for name in names)
/external/tensorflow/tensorflow/python/framework/
Dimmutable_dict.py34 def __contains__(self, key): member in ImmutableDict
/external/mbedtls/scripts/
Dconfig.py71 def __contains__(self, name): member in Config
81 return all(self.__contains__(name) for name in names)
85 return any(self.__contains__(name) for name in names)
/external/python/setuptools/pkg_resources/_vendor/importlib_resources/
D_itertools.py27 for element in filterfalse(seen.__contains__, iterable):
/external/python/setuptools/setuptools/_vendor/importlib_resources/
D_itertools.py27 for element in filterfalse(seen.__contains__, iterable):
/external/python/pyasn1/pyasn1/type/
Dopentype.py97 def __contains__(self, key): member in OpenType
/external/python/cpython2/Lib/test/
Dtest_collections.py503 def __contains__(self, item): member in WithSet
524 def __contains__(self, x): member in TestCollectionABCs.test_Set.MySet
536 def __contains__(self, x): member in TestCollectionABCs.test_hash_Set.OneTwoThreeSet
569 def __contains__(self,v): member in TestCollectionABCs.test_issue_4920.MySet
607 def __contains__(self, x): member in TestCollectionABCs.test_issue16373.MyComparableSet
614 def __contains__(self, x): member in TestCollectionABCs.test_issue16373.MyNonComparableSet
650 def __contains__(self, elem): member in TestCollectionABCs.test_Set_interoperability_with_real_sets.ListSet
869 self.assertEqual(c.__contains__('c'), True)
870 self.assertEqual(c.__contains__('z'), False)

12345678910