[issue15582] Enhance inspect.getdoc to follow inheritance chains
Serhiy Storchaka
report at bugs.python.org
Mon Apr 20 07:52:29 CEST 2015
Serhiy Storchaka added the comment:
I were aware that this can propagate some not well appropriate docstrings from abstract base classes, but Martin expose worse problem: inheriting a docstring by the method with changed signature.
Perhaps we should check if a signature of overriding method is compatible with a signature of base method. But this is hard to implement, and impossible in some cases until all builtins will converted to Argument Clinic.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15582>
_______________________________________
More information about the Python-bugs-list
mailing list