statox
statox

Reputation: 2886

How did I get informations on the module I'm writing?

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:

Help on my module

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

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

Answers (1)

ahmed
ahmed

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

Related Questions