Closed psukys closed 6 years ago
Actually just understood that the sample code didn't use an object
base class, thus why it failed. Eitherway, the proposed solution works for retrieving class's __doc__
Test is ready
Thanks!
However, I don't want to support object-level (not class-level) introspection XMLs, unless somebody gives me a good reason (other than Python 2 class stupidity) to do so.
@LEW21 , then it would make sense to drop Python 2.* support as software's not functioning correctly then.
Actually, it's functioning correctly. It only does not support old-style classes, which are a deprecated, should-not-be-used part of Python 2.
Also, I'm going to drop Python 2 support in the next release.
Previously Python2
type(object)
returnedinstance
instead of actual class.instance
's__doc__
is:Shortly checked on python3.6 and it seems to run as well.
Will add a test later for this functionality later on.
Fix #70