Searched refs:isabstract (Results 1 – 16 of 16) sorted by relevance
10 from inspect import isabstract47 self.assertTrue(isabstract(C))52 self.assertTrue(isabstract(D))57 self.assertFalse(isabstract(E))63 self.assertTrue(isabstract(F))
146 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))
6 from inspect import isabstract43 if not isabstract(abc):143 abs_classes = filter(isabstract, abs_classes)
13 from inspect import isabstract162 self.assertTrue(isabstract(C))167 self.assertTrue(isabstract(D))172 self.assertFalse(isabstract(E))178 self.assertTrue(isabstract(F))
251 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))
854 PyObject* isabstract; in _PyObject_IsAbstract() local859 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()
242 def isabstract(object): function
322 inspect.isabstract() now works during __init_subclass__. Patch by Nate
2867 inspect.isabstract() now works during __init_subclass__. Patch by Nate
325 .. function:: isabstract(object)
292 def isabstract(object): function
387 .. function:: isabstract(object)
1344 Add inspect.isabstract(object) to fix bug #2223
1916 Make inspect.isabstract() return a boolean.
2003 and :func:`isabstract`.
2007 and :func:`isabstract`.