Message327593
Pydoc supports aliases. If the alias is defined in the same class
class A:
def foo(self, x=42): pass
bar = foo
it will render the docstring only for the original function. For the alias it will output just "bar = foo(self, x=42)".
But this doesn't work if the original function or alias are inherited. It often happened in the tkinter and turtle modules which have a hierarchy of classes, and aliases defined in parent classes. Compare for example the rendering for methods itemconfig and lift in help(tkinter.Listbox).
The proposed PR makes pydoc detecting aliases for inherited methods. |
|
Date |
User |
Action |
Args |
2018-10-12 15:50:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, yselivanov |
2018-10-12 15:50:11 | serhiy.storchaka | set | messageid: <1539359411.67.0.788709270274.issue34966@psf.upfronthosting.co.za> |
2018-10-12 15:50:11 | serhiy.storchaka | link | issue34966 messages |
2018-10-12 15:50:11 | serhiy.storchaka | create | |
|