summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-03-03 18:28:04 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-03-03 18:28:04 (GMT)
commit608c1d8e87b20116011fe8fce634e980e115d514 (patch)
treee7204b4c31d30b37d308dda03cc03c032f5df08e /Doc/library/inspect.rst
parent1f178a6fac790f380b6830642b8c9afc0a3a9931 (diff)
downloadcpython-608c1d8e87b20116011fe8fce634e980e115d514.zip
cpython-608c1d8e87b20116011fe8fce634e980e115d514.tar.gz
cpython-608c1d8e87b20116011fe8fce634e980e115d514.tar.bz2
Since abc._Abstract was replaces by a new type flags the regression test suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too?
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index fb92783..5ece3cd 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -307,6 +307,12 @@ Note:
Return true if the object is a user-defined or built-in function or method.
+.. function:: isabstract(object)
+
+ Return true if the object is an abstract base class.
+
+ .. versionadded:: 2.6
+
.. function:: ismethoddescriptor(object)