Home
last modified time | relevance | path

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

123456789

/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):
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))
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
Dkeyword.py51 iskeyword = frozenset(kwlist).__contains__
DUserDict.py103 def __contains__(self, key): member in UserDict
138 def __contains__(self, key): member in DictMixin
/external/python/cpython3/Doc/library/
Dcollections.abc.rst40 :class:`Container` ``__contains__``
48 :class:`Collection` :class:`Sized`, ``__contains__``,
52 :class:`Sequence` :class:`Reversible`, ``__getitem__``, ``__contains__``, ``__ite…
64 :class:`Set` :class:`Collection` ``__contains__``, ``__le__``, ``__lt__``, `…
68 :class:`MutableSet` :class:`Set` ``__contains__``, Inherited :class:`Set` me…
74 :class:`Mapping` :class:`Collection` ``__getitem__``, ``__contains__``, ``keys`…
86 :class:`ItemsView` :class:`MappingView`, ``__contains__``,
88 :class:`KeysView` :class:`MappingView`, ``__contains__``,
90 :class:`ValuesView` :class:`MappingView`, ``__contains__``, ``__ite…
102 ABC for classes that provide the :meth:`__contains__` method.
[all …]
/external/python/cpython3/Lib/
Dkeyword.py61 iskeyword = frozenset(kwlist).__contains__
62 issoftkeyword = frozenset(softkwlist).__contains__
Dfilecmp.py144 self.common = list(map(a.__getitem__, filter(b.__contains__, a)))
145 self.left_only = list(map(a.__getitem__, filterfalse(b.__contains__, a)))
146 self.right_only = list(map(b.__getitem__, filterfalse(a.__contains__, b)))
291 return list(filterfalse(skip.__contains__, flist))
D_collections_abc.py389 def __contains__(self, x): member in Container
682 def __contains__(self, key): member in Mapping
737 def __contains__(self, key): member in KeysView
755 def __contains__(self, item): member in ItemsView
776 def __contains__(self, value): member in ValuesView
905 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.py235 def __contains__(self, key): member in TestChainMap.test_new_child.lowerdict
238 return dict.__contains__(self, key)
1050 def __contains__(self, item): member in TestOneTrickPonyABCs.test_Collection.Col
1066 def __contains__(self, item): return False member in TestOneTrickPonyABCs.test_Collection.ColNoIter
1069 def __contains__(self, item): return False member in TestOneTrickPonyABCs.test_Collection.ColNoSize
1082 def __contains__(self): return False member in TestOneTrickPonyABCs.test_Collection.SizeBlock
1086 def __contains__(self): return True member in TestOneTrickPonyABCs.test_Collection.IterBlock
1098 def __contains__(self, item): member in TestOneTrickPonyABCs.test_Collection.ColImpl
1101 __contains__ = None variable in TestOneTrickPonyABCs.test_Collection.NonCol
1365 def __contains__(self, item): member in WithSet
[all …]
Dtest_dictviews.py293 self.assertRaises(Exc, d.__contains__, k2)
294 self.assertRaises(Exc, d.keys().__contains__, k2)
295 self.assertRaises(Exc, d.items().__contains__, (k2, v1))
296 self.assertRaises(Exc, d.items().__contains__, (k1, v2))
Dtest_call.py34 self.assertRaisesRegex(TypeError, msg, {}.__contains__)
38 self.assertRaisesRegex(TypeError, msg, {}.__contains__, 0, 1)
65 self.assertRaisesRegex(TypeError, msg, {}.__contains__, x=2)
69 self.assertRaisesRegex(TypeError, msg, {}.__contains__, x=2, y=2)
/external/python/cpython3/PC/layout/support/
Dfilesets.py27 def __contains__(self, f): member in FileStemSet
61 def __contains__(self, f): member in FileSuffixSet
/external/python/pyasn1/pyasn1/type/
Dopentype.py97 def __contains__(self, key): member in OpenType
Dtagmap.py40 def __contains__(self, tagSet): member in TagMap
/external/llvm-project/lldb/examples/customization/import-python/
Dimportcmd.py8 return sys.path.__contains__(dirname)
/external/python/cpython2/Lib/plat-riscos/
Driscosenviron.py35 def __contains__(self, key): member in _Environ
/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)
/external/bcc/src/cc/frontends/p4/compiler/
DtopoSorting.py47 def __contains__(self, node): member in Graph
/external/python/cpython2/Lib/compiler/
Dmisc.py16 def __contains__(self, elt): member in Set
/external/toolchain-utils/bestflags/
Dflags.py183 def __contains__(self, flag_spec): member in FlagSet
/external/python/cpython2/Lib/plat-mac/
Dic.py183 return self.__contains__(key)
185 def __contains__(self, key): member in IC
/external/python/uritemplates/uritemplate/
Dorderedset.py36 def __contains__(self, key): member in OrderedSet
/external/python/cpython2/Lib/wsgiref/
Dheaders.py71 __contains__ = has_key variable in Headers

123456789