Issue #15582: inspect.getdoc() now follows inheritance chains.

This commit is contained in:
Serhiy Storchaka 2015-04-03 22:38:53 +03:00
parent 41525e31a5
commit 5cf2b7253d
5 changed files with 112 additions and 3 deletions

View file

@ -45,9 +45,16 @@ class StupidGit:
self.ex = sys.exc_info()
self.tr = inspect.trace()
def contradiction(self):
'The automatic gainsaying.'
pass
# line 48
class MalodorousPervert(StupidGit):
pass
def abuse(self, a, b, c):
pass
def contradiction(self):
pass
Tit = MalodorousPervert
@ -55,4 +62,7 @@ class ParrotDroppings:
pass
class FesteringGob(MalodorousPervert, ParrotDroppings):
pass
def abuse(self, a, b, c):
pass
def contradiction(self):
pass