Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/test/crashers/
Dborrowed_ref_1.py12 del D.__missing__
15 class __missing__: class in D
/external/python/cpython3/Lib/test/
Dtest_userdict.py177 def __missing__(self, key): member in UserDictTest.test_missing.D
186 def __missing__(self, key): member in UserDictTest.test_missing.E
198 self.__missing__ = lambda key: None
Dtest_defaultdict.py54 self.assertRaises(KeyError, d1.__missing__, 42)
56 self.assertEqual(d1.__missing__(42), [])
Dtest_dict.py663 def __missing__(self, key): member in DictTest.test_missing.D
673 def __missing__(self, key): member in DictTest.test_missing.E
683 self.__missing__ = lambda key: None
Dtest_ordered_dict.py255 def __missing__(self, key): member in OrderedDictTests.test_pop.Missing
388 def __missing__(self, key): member in OrderedDictTests.test_setdefault.Missing
/external/python/cpython2/Lib/test/
Dtest_defaultdict.py54 self.assertRaises(KeyError, d1.__missing__, 42)
56 self.assertEqual(d1.__missing__(42), [])
Dtest_userdict.py193 def __missing__(self, key): member in UserDictTest.test_missing.D
202 def __missing__(self, key): member in UserDictTest.test_missing.E
214 self.__missing__ = lambda key: None
Dtest_ordered_dict.py143 def __missing__(self, key): member in TestOrderedDict.test_pop.Missing
250 def __missing__(self, key): member in TestOrderedDict.test_setdefault.Missing
Dtest_dict.py460 def __missing__(self, key): member in DictTest.test_missing.D
470 def __missing__(self, key): member in DictTest.test_missing.E
480 self.__missing__ = lambda key: None
/external/python/cpython3/Lib/email/
D_encoded_words.py77 def __missing__(self, key): member in _QByteMap
/external/fonttools/Lib/fontTools/misc/
DtestTools.py132 def __missing__(reverseDict, key): member in MockFont.__init__.AllocatingDict
Dsymfont.py54 def __missing__(self, i): member in _BezierFuncsLazy
/external/python/cpython3/Lib/collections/
D__init__.py568 def __missing__(self, key): member in Counter
905 def __missing__(self, key): member in ChainMap
914 return self.__missing__(key) # support subclasses that define __missing__
1024 return self.__class__.__missing__(self, key)
/external/fonttools/Lib/fontTools/cffLib/
Dwidth.py16 def __missing__(self, v): member in missingdict
/external/python/cpython2/Lib/
DUserDict.py39 return self.__class__.__missing__(self, key)
Dcollections.py479 def __missing__(self, key): member in Counter
/external/python/cpython3/Lib/idlelib/
Dpyparse.py114 def __missing__(self, key): member in ParseMap
/external/fonttools/Lib/fontTools/varLib/
DvarStore.py388 def __missing__(self, chars): member in _EncodingDict
/external/python/cpython2/Doc/library/
Dcollections.rst460 .. method:: __missing__(key)
476 Note that :meth:`__missing__` is *not* called for any operations besides
487 This attribute is used by the :meth:`__missing__` method; it is
Dstdtypes.rst2105 .. index:: __missing__()
2107 If a subclass of dict defines a method :meth:`__missing__` and *key*
2110 returned or raised by the ``__missing__(key)`` call.
2111 No other operations or methods invoke :meth:`__missing__`. If
2112 :meth:`__missing__` is not defined, :exc:`KeyError` is raised.
2113 :meth:`__missing__` must be a method; it cannot be an instance variable::
2116 ... def __missing__(self, key):
2126 :class:`collections.Counter`. A different ``__missing__`` method is used
2130 Recognition of __missing__ methods of dict subclasses.
/external/python/cpython3/Lib/urllib/
Dparse.py773 def __missing__(self, b): member in Quoter
/external/python/cpython2/Lib/sqlite3/test/
Ddbapi.py269 def __missing__(self, key): member in CursorTests.CheckExecuteDictMapping_Mapping.D
/external/fonttools/Lib/fontTools/ttLib/tables/
DE_B_D_T_.py235 def __missing__(self, key): member in _memoize.memodict
/external/python/cpython2/Misc/NEWS.d/
D2.7.10rc1.rst685 Improve the documentation and indexing of dict.__missing__. Add an entry in
/external/python/cpython3/Lib/sqlite3/test/
Ddbapi.py299 def __missing__(self, key): member in CursorTests.CheckExecuteDictMapping_Mapping.D

12