Home
last modified time | relevance | path

Searched refs:isabstract (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_abc.py10 from inspect import isabstract
47 self.assertTrue(isabstract(C))
52 self.assertTrue(isabstract(D))
57 self.assertFalse(isabstract(E))
63 self.assertTrue(isabstract(F))
Dtest_inspect.py146 self.assertTrue(inspect.isabstract(AbstractClassExample))
147 self.assertFalse(inspect.isabstract(ClassExample))
148 self.assertFalse(inspect.isabstract(a))
149 self.assertFalse(inspect.isabstract(int))
150 self.assertFalse(inspect.isabstract(5))
/external/python/cpython3/Lib/test/libregrtest/
Drefleak.py6 from inspect import isabstract
43 if not isabstract(abc):
143 abs_classes = filter(isabstract, abs_classes)
/external/python/cpython3/Lib/test/
Dtest_abc.py13 from inspect import isabstract
162 self.assertTrue(isabstract(C))
167 self.assertTrue(isabstract(D))
172 self.assertFalse(isabstract(E))
178 self.assertTrue(isabstract(F))
Dtest_inspect.py251 self.assertTrue(inspect.isabstract(AbstractClassExample))
252 self.assertFalse(inspect.isabstract(ClassExample))
253 self.assertFalse(inspect.isabstract(a))
254 self.assertFalse(inspect.isabstract(int))
255 self.assertFalse(inspect.isabstract(5))
262 isabstract_checks.append(inspect.isabstract(cls))
/external/python/cpython3/Objects/
Dobject.c854 PyObject* isabstract; in _PyObject_IsAbstract() local
859 res = _PyObject_LookupAttrId(obj, &PyId___isabstractmethod__, &isabstract); in _PyObject_IsAbstract()
861 res = PyObject_IsTrue(isabstract); in _PyObject_IsAbstract()
862 Py_DECREF(isabstract); in _PyObject_IsAbstract()
/external/python/cpython2/Lib/
Dinspect.py242 def isabstract(object): function
/external/python/cpython3/Misc/NEWS.d/
D3.6.2rc1.rst322 inspect.isabstract() now works during __init_subclass__. Patch by Nate
D3.7.0a1.rst2867 inspect.isabstract() now works during __init_subclass__. Patch by Nate
/external/python/cpython2/Doc/library/
Dinspect.rst325 .. function:: isabstract(object)
/external/python/cpython3/Lib/
Dinspect.py292 def isabstract(object): function
/external/python/cpython3/Doc/library/
Dinspect.rst387 .. function:: isabstract(object)
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst1344 Add inspect.isabstract(object) to fix bug #2223
D2.7a1.rst1916 Make inspect.isabstract() return a boolean.
/external/python/cpython2/Doc/whatsnew/
D2.6.rst2003 and :func:`isabstract`.
/external/python/cpython3/Doc/whatsnew/
D2.6.rst2007 and :func:`isabstract`.