Documentation String change
Brought to you by:
fabioz
pydev does a nice job of showing the documentation
string for a given method in the intellisense popup in
code completion. However, there is a scenario where I
think it could be tweaked.
Example:
-------
class A:
def foo(self, name):
"foo(string) -> string"
return name
# end A
class B(A):
def foo(self, name):
return "B:%s" % name
# end B
b = B()
b.fo
If I now hit Ctrl-Space to complete the method, I will
not see the "foo(string) -> string" text in the code
completion popup. Seems like if B doesn't specify the
docstring, pydev could look for one on parent classes.
If there are multiple parent classes that both declare
foo(), then either don't show one or pick one.