Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324cc6e commit a9c6c8dCopy full SHA for a9c6c8d
1 file changed
Lib/inspect.py
@@ -44,7 +44,7 @@ def isclass(object):
44
Class objects provide these attributes:
45
__doc__ documentation string
46
__module__ name of module in which this class was defined"""
47
- return type(object) is types.ClassType
+ return type(object) is types.ClassType or hasattr(object, '__bases__')
48
49
def ismethod(object):
50
"""Return true if the object is an instance method.
0 commit comments