Home
last modified time | relevance | path

Searched refs:__missing__ (Results 1 – 23 of 23) sorted by relevance

/third_party/python/Lib/importlib/metadata/
D_collections.py20 def __missing__(self, key): member in FreezableDefaultDict
21 return getattr(self, '_frozen', super().__missing__)(key)
/third_party/python/Lib/test/
Dtest_userdict.py176 def __missing__(self, key): member in UserDictTest.test_missing.D
185 def __missing__(self, key): member in UserDictTest.test_missing.E
197 self.__missing__ = lambda key: None
Dtest_defaultdict.py54 self.assertRaises(KeyError, d1.__missing__, 42)
56 self.assertEqual(d1.__missing__(42), [])
Dtest_ordered_dict.py258 def __missing__(self, key): member in OrderedDictTests.test_pop.Missing
391 def __missing__(self, key): member in OrderedDictTests.test_setdefault.Missing
Dtest_dict.py752 def __missing__(self, key): member in DictTest.test_missing.D
762 def __missing__(self, key): member in DictTest.test_missing.E
772 self.__missing__ = lambda key: None
Dtest_types.py998 def __missing__(self, key): member in MappingProxyTests.test_missing.dictmissing
Dtest_unicode.py1309 def __missing__(self, key): member in UnicodeTest.test_format_map.Mapping
Dtest_collections.py167 def __missing__(self, key): member in TestChainMap.test_missing.DefaultChainMap
/third_party/python/Lib/email/
D_encoded_words.py77 def __missing__(self, key): member in _QByteMap
/third_party/python/Lib/collections/
D__init__.py579 def __missing__(self, key): member in Counter
973 def __missing__(self, key): member in ChainMap
982 return self.__missing__(key) # support subclasses that define __missing__
1101 return self.__class__.__missing__(self, key)
/third_party/python/Lib/idlelib/
Dpyparse.py114 def __missing__(self, key): member in ParseMap
/third_party/python/Lib/urllib/
Dparse.py810 def __missing__(self, b): member in Quoter
/third_party/python/Doc/library/
Dcollections.rst726 .. method:: __missing__(key)
742 Note that :meth:`__missing__` is *not* called for any operations besides
753 This attribute is used by the :meth:`__missing__` method; it is
Dstdtypes.rst1696 ... def __missing__(self, key):
4416 .. index:: __missing__()
4418 If a subclass of dict defines a method :meth:`__missing__` and *key*
4421 returned or raised by the ``__missing__(key)`` call.
4422 No other operations or methods invoke :meth:`__missing__`. If
4423 :meth:`__missing__` is not defined, :exc:`KeyError` is raised.
4424 :meth:`__missing__` must be a method; it cannot be an instance variable::
4427 ... def __missing__(self, key):
4437 :class:`collections.Counter`. A different ``__missing__`` method is used
Dunittest.mock.rst2019 and ``__missing__``
2165 * ``__reversed__`` and ``__missing__``
/third_party/python/Lib/sqlite3/test/
Ddbapi.py337 def __missing__(self, key): member in CursorTests.test_execute_dict_mapping_mapping.D
/third_party/python/Doc/whatsnew/
D2.5.rst980 dictionary's ``__missing__(key)`` method will be called. This hook is used
986 def __missing__ (self, key):
D3.2.rst460 supply a :meth:`__missing__` method for unknown keys::
475 ... def __missing__(self, key):
/third_party/python/Tools/c-analyzer/
DTODO358 Objects/dictobject.c:dict_subscript():PyId___missing__ _Py_IDENTIFIER(__missing__)
/third_party/python/Doc/reference/
Dcompound_stmts.rst970 in the mapping, and not created on-the-fly via :meth:`__missing__` or
Ddatamodel.rst2481 .. method:: object.__missing__(self, key)
/third_party/python/Objects/
Ddictobject.c2202 _Py_IDENTIFIER(__missing__); in dict_subscript()
/third_party/python/Misc/
DHISTORY10936 define __missing__().
18506 - dict.__getitem__ now looks for a __missing__ hook before raising
18777 This uses the new __missing__ hook behavior added to dict (see above).