Menu

#181 Documentation String change

open
nobody
None
5
2006-10-27
2006-10-27
No

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.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.