Phyton Can I view the doc string of a function in Python using VIM? python view function docstring

Is there any way to view a function's doc string when writing Python in VIM?

For instance:

def MyFunction(spam):
    """A function that foobars the spam
    returns eggs"""

    return foobar(spam).eggs()

I'd like to be able to type MyFunction(spam0) and see the doc string, either as a tooltip or in the status bar or any other way that VIM allows.

Answer:1



  1. python view function docstring

I am having a problem during the installation of tkinter. I have version 2.7.11. I entered the pip install tkinter on dos but it shows the following message: collecting tkinter Could not find ...

I am having a problem during the installation of tkinter. I have version 2.7.11. I entered the pip install tkinter on dos but it shows the following message: collecting tkinter Could not find ...

I hit this issue about two years ago when I first implemented our SWIG bindings. As soon as we exposed a large amount of code we got to the point where SWIG would output C++ files so large the ...

I hit this issue about two years ago when I first implemented our SWIG bindings. As soon as we exposed a large amount of code we got to the point where SWIG would output C++ files so large the ...