Lotus Qin added the comment:
get the __doc__ in a wrong way, it works now.
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Changes by Lotus Qin :
--
title: Error usage of class.__bases__() -> Error usage of class.__bases__
___
Python tracker
<http://bugs.python.org/issue21113>
___
_
New submission from Lotus Qin:
function in urllib.request.build_opener()
def isclass(obj):
return isinstance(obj, type) or hasattr(obj, "__bases__")
should it be `obj` or `obj.__class__`?
cause in the man of 3.4, there is only `class.__bases__`, but the code there
ma