/third_party/python/Lib/importlib/metadata/ |
D | _collections.py | 20 def __missing__(self, key): member in FreezableDefaultDict 21 return getattr(self, '_frozen', super().__missing__)(key)
|
/third_party/python/Lib/test/ |
D | test_userdict.py | 176 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
|
D | test_defaultdict.py | 54 self.assertRaises(KeyError, d1.__missing__, 42) 56 self.assertEqual(d1.__missing__(42), [])
|
D | test_ordered_dict.py | 258 def __missing__(self, key): member in OrderedDictTests.test_pop.Missing 391 def __missing__(self, key): member in OrderedDictTests.test_setdefault.Missing
|
D | test_dict.py | 752 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
|
D | test_types.py | 998 def __missing__(self, key): member in MappingProxyTests.test_missing.dictmissing
|
D | test_unicode.py | 1309 def __missing__(self, key): member in UnicodeTest.test_format_map.Mapping
|
D | test_collections.py | 167 def __missing__(self, key): member in TestChainMap.test_missing.DefaultChainMap
|
/third_party/python/Lib/email/ |
D | _encoded_words.py | 77 def __missing__(self, key): member in _QByteMap
|
/third_party/python/Lib/collections/ |
D | __init__.py | 579 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/ |
D | pyparse.py | 114 def __missing__(self, key): member in ParseMap
|
/third_party/python/Lib/urllib/ |
D | parse.py | 810 def __missing__(self, b): member in Quoter
|
/third_party/python/Doc/library/ |
D | collections.rst | 726 .. 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
|
D | stdtypes.rst | 1696 ... 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
|
D | unittest.mock.rst | 2019 and ``__missing__`` 2165 * ``__reversed__`` and ``__missing__``
|
/third_party/python/Lib/sqlite3/test/ |
D | dbapi.py | 337 def __missing__(self, key): member in CursorTests.test_execute_dict_mapping_mapping.D
|
/third_party/python/Doc/whatsnew/ |
D | 2.5.rst | 980 dictionary's ``__missing__(key)`` method will be called. This hook is used 986 def __missing__ (self, key):
|
D | 3.2.rst | 460 supply a :meth:`__missing__` method for unknown keys:: 475 ... def __missing__(self, key):
|
/third_party/python/Tools/c-analyzer/ |
D | TODO | 358 Objects/dictobject.c:dict_subscript():PyId___missing__ _Py_IDENTIFIER(__missing__)
|
/third_party/python/Doc/reference/ |
D | compound_stmts.rst | 970 in the mapping, and not created on-the-fly via :meth:`__missing__` or
|
D | datamodel.rst | 2481 .. method:: object.__missing__(self, key)
|
/third_party/python/Objects/ |
D | dictobject.c | 2202 _Py_IDENTIFIER(__missing__); in dict_subscript()
|
/third_party/python/Misc/ |
D | HISTORY | 10936 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).
|