Home
last modified time | relevance | path

Searched refs:__subclasscheck__ (Results 1 – 22 of 22) 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.py913 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.py141 def __subclasscheck__(cls, subclass): member in ABCMeta
Dtyping.py334 def __subclasscheck__(self, cls): member in _SpecialForm
708 return self.__subclasscheck__(type(obj))
710 def __subclasscheck__(self, cls): member in _GenericAlias
1100 def __subclasscheck__(self, cls): member in _ProtocolMeta
/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/cpython3/Doc/c-api/
Dtype.rst75 :meth:`~class.__subclasscheck__` is not called on *b*. Call
Dobject.rst219 If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to
/external/python/cpython2/Doc/library/
Dabc.rst70 :meth:`__subclasscheck__` method of the ABC.)
/external/python/cpython3/Modules/
D_abc.c20 _Py_IDENTIFIER(__subclasscheck__);
/external/python/cpython3/Misc/NEWS.d/
D3.7.0b3.rst298 Fix C implementation of ``ABC.__subclasscheck__(cls, subclass)`` crashed when
/external/python/cpython3/Doc/library/
Dabc.rst102 :meth:`__subclasscheck__` method of the ABC.)
Dunittest.mock.rst1720 * ``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``
/external/python/cpython3/Objects/
Dabstract.c2449 _Py_IDENTIFIER(__subclasscheck__); in PyObject_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.rst2030 .. method:: class.__subclasscheck__(self, subclass)
2047 :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