Reputation: 2886
I'm writing my first complete python project with Vim. As I was modifying a file I accidentally hit several keys that I can't find back and I get this prompt:
I didn't know it was possible to get this kind of help on a module I am writing and I have no idea how I got it, so my question is:
What command or tools allows to generate this kind on module information?
Several notes
The command is not a Vim command because the ouput was in an external
shell (so I probably use an equivalent to :![command]
.
I don't have any Vim plugin related to python installed so it was probably not generated by a plugin.
The command wasn't issued in an interactive python prompt since I started my vim from my bash prompt.
I have not idea of how many keystrokes I used.
My Vim command history and my bash history doesn't have a trace of what happened.
I'm using zsh and oh-my-zshell
I know that this question might sound silly but I have no idea of which tool can do that and I have no mean to find what sequence of keystrokes I used.
Upvotes: 3
Views: 67
Reputation: 5590
You can use pydoc
command to get module help
pydoc requests
if you are using the interactive python shell, you can use the help
function:
>>> import requests
>>> help(requests.get)
it work on class instance too
Upvotes: 5