Menu

#382 Hover docstrings should discern between call and non-call

open
nobody
5
2009-09-11
2009-09-11
Tim Lesher
No

In Java, hover tooltips discern between use of a class name and construction of a class object. For example:

public void fn() {
MyClass a;
new MyClass();
}

Hovering over the first "MyClass" shows javadoc for the class; hovering over the second one shows javadoc for the constructor.

The same should occur in PyDev. Given this code:

class Foo():
"""Foo class."""
def __init__(self, count):
"""Create a new Foo, initializing the bar counter to count."""

a = Foo
b = Foo(10)

Hovering over the Foo in "a = Foo" should show the Foo class docstring; hovering over the Foo in "b = Foo(10)" should show the Foo.__init__ docstring.

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.