Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_typechecks.py11 return any(cls.__subclasscheck__(c)
14 def __subclasscheck__(cls, sub): member in ABC
35 self.assertEqual(Integer.__subclasscheck__(int), True)
36 self.assertEqual(Integer.__subclasscheck__(float), False)
79 def __subclasscheck__(self, cls): member in TypeChecksTest.test_oldstyle.X
Dtest_exceptions.py449 def __subclasscheck__(cls, subclass): member in ExceptionTests.test_badisinstance.Meta
/external/python/cpython3/Lib/test/
Dtest_typechecks.py10 return any(cls.__subclasscheck__(c)
13 def __subclasscheck__(cls, sub): member in ABC
30 self.assertEqual(Integer.__subclasscheck__(int), True)
31 self.assertEqual(Integer.__subclasscheck__(float), False)
Dtest_exceptions.py973 def __subclasscheck__(cls, subclass): member in ExceptionTests.test_badisinstance.Meta
/external/python/cpython2/Lib/
Dabc.py144 return cls.__subclasscheck__(subtype)
145 return (cls.__subclasscheck__(subclass) or
146 cls.__subclasscheck__(subtype))
148 def __subclasscheck__(cls, subclass): member in ABCMeta
/external/python/cpython3/Lib/
D_py_abc.py105 return cls.__subclasscheck__(subclass)
106 return any(cls.__subclasscheck__(c) for c in (subclass, subtype))
108 def __subclasscheck__(cls, subclass): member in ABCMeta
Dabc.py100 def __subclasscheck__(cls, subclass): member in ABCMeta
Dtyping.py334 def __subclasscheck__(self, cls): member in _SpecialForm
697 return self.__subclasscheck__(type(obj))
699 def __subclasscheck__(self, cls): member in _BaseGenericAlias
825 def __subclasscheck__(self, cls): member in _SpecialGenericAlias
830 return super().__subclasscheck__(cls)
1928 def __subclasscheck__(cls, other): member in _TypedDictMeta
1932 __instancecheck__ = __subclasscheck__
/external/python/cpython2/Doc/c-api/
Dtype.rst75 :meth:`~class.__subclasscheck__` is not called on *b*. Call
/external/python/cpython2/Misc/NEWS.d/
D2.6rc1.rst82 speed despite the __instancecheck__ / __subclasscheck__ mechanism. In the
85 __subclasscheck__ on the tuple rather than on each type object.
D2.7a1.rst591 ``__instancecheck__()`` and ``__subclasscheck__()`` are now completely
/external/python/cpython2/Doc/library/
Dabc.rst70 :meth:`__subclasscheck__` method of the ABC.)
/external/python/cpython3/Modules/
D_abc.c19 _Py_IDENTIFIER(__subclasscheck__);
/external/python/cpython3/Doc/c-api/
Dtype.rst75 :meth:`~class.__subclasscheck__` is not called on *b*. Call
Dobject.rst220 If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to
/external/python/cpython3/Misc/NEWS.d/
D3.7.0b3.rst298 Fix C implementation of ``ABC.__subclasscheck__(cls, subclass)`` crashed when
D3.8.0a1.rst5549 Fix C implementation of ``ABC.__subclasscheck__(cls, subclass)`` crashed
/external/python/cpython3/Doc/library/
Dabc.rst102 :meth:`__subclasscheck__` method of the ABC.)
Dunittest.mock.rst2044 * ``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``
/external/python/cpython3/Tools/c-analyzer/
DTODO264 Modules/_abc.c:PyId___subclasscheck__ _Py_IDENTIFIER(__subclasscheck__)
340 Objects/abstract.c:PyObject_IsSubclass():PyId___subclasscheck__ _Py_IDENTIFIER(__subclasscheck__)
Dknown.tsv1395 Modules/_abc.c - PyId___subclasscheck__ variable _Py_IDENTIFIER(__subclasscheck__)
1396 …ts/abstract.c PyObject_IsSubclass PyId___subclasscheck__ variable _Py_IDENTIFIER(__subclasscheck__)
/external/python/cpython3/Objects/
Dabstract.c2574 _Py_IDENTIFIER(__subclasscheck__); in object_issubclass()
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1810 .. method:: class.__subclasscheck__(self, subclass)
1827 :meth:`~class.__subclasscheck__`, with motivation for this functionality
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2117 .. method:: class.__subclasscheck__(self, subclass)
2134 :meth:`~class.__subclasscheck__`, with motivation for this functionality
/external/python/cpython3/Misc/
DHISTORY16306 match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
16309 __instancecheck__ / __subclasscheck__ on the tuple rather than on each