Home
last modified time | relevance | path

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

12345

/third_party/python/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
820 def __contains__(self, key): member in Mapping
874 def __contains__(self, key): member in KeysView
892 def __contains__(self, item): member in ItemsView
913 def __contains__(self, value): member in ValuesView
1041 def __contains__(self, value): member in Sequence
Dshelve.py101 def __contains__(self, key): member in Shelf
Dtracemalloc.py209 def __contains__(self, frame): member in Traceback
326 def __contains__(self, trace): member in _Traces
/third_party/python/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 …]
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.py35 self.assertRaisesRegex(TypeError, msg, {}.__contains__)
39 self.assertRaisesRegex(TypeError, msg, {}.__contains__, 0, 1)
66 self.assertRaisesRegex(TypeError, msg, {}.__contains__, x=2)
70 self.assertRaisesRegex(TypeError, msg, {}.__contains__, x=2, y=2)
/third_party/python/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 …]
/third_party/python/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
/third_party/python/PC/layout/support/
Dfilesets.py27 def __contains__(self, f): member in FileStemSet
61 def __contains__(self, f): member in FileSuffixSet
/third_party/mbedtls/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)
/third_party/mindspore/mindspore/_extends/parse/
Dnamespace.py36 def __contains__(self, name): member in Namespace
/third_party/protobuf/python/google/protobuf/internal/
Dcontainers.py82 def __contains__(self, key): member in Mapping
494 def __contains__(self, item): member in ScalarMap
610 def __contains__(self, item): member in MessageMap
Dextension_dict.py199 def __contains__(self, extension_handle): member in _ExtensionDict
/third_party/python/Lib/wsgiref/
Dutil.py168 }.__contains__
Dheaders.py77 def __contains__(self, name): member in Headers
/third_party/grpc/src/python/grpcio/grpc/aio/
D_metadata.py100 def __contains__(self, key: MetadataKey) -> bool: member in Metadata
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_metadata.py100 def __contains__(self, key: MetadataKey) -> bool: member in Metadata
/third_party/python/Objects/
Ddictnotes.txt46 to the same key. There are similar use cases with a __contains__
53 Many calls to __contains__() or has_key().
/third_party/mindspore/mindspore/_extends/parallel_compile/tbe_compiler/
Dcompiler.py47 if not arg or not arg.__contains__('range'):
/third_party/python/Lib/xml/sax/
Dxmlreader.py323 def __contains__(self, name): member in AttributesImpl

12345