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.py5 from inspect import isabstract
50 if not isabstract(abc):
171 abs_classes = filter(isabstract, abs_classes)
/external/python/cpython3/Lib/test/
Dtest_abc.py13 from inspect import isabstract
181 self.assertTrue(isabstract(C))
186 self.assertTrue(isabstract(D))
191 self.assertFalse(isabstract(E))
197 self.assertTrue(isabstract(F))
Dtest_inspect.py273 self.assertTrue(inspect.isabstract(AbstractClassExample))
274 self.assertFalse(inspect.isabstract(ClassExample))
275 self.assertFalse(inspect.isabstract(a))
276 self.assertFalse(inspect.isabstract(int))
277 self.assertFalse(inspect.isabstract(5))
284 isabstract_checks.append(inspect.isabstract(cls))
/external/python/cpython3/Objects/
Dobject.c832 PyObject* isabstract; in _PyObject_IsAbstract() local
837 res = _PyObject_LookupAttrId(obj, &PyId___isabstractmethod__, &isabstract); in _PyObject_IsAbstract()
839 res = PyObject_IsTrue(isabstract); in _PyObject_IsAbstract()
840 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.rst2862 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.py302 def isabstract(object): function
/external/python/cpython3/Doc/library/
Dinspect.rst409 .. 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`.