Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a 'man' for python?

Tags:

python

I am wondering if there is a CLI like 'man.py' dedicated to Python?

ex,

man.py os.system
> system(command) -> exit_status
>
> Execute the command (a string) in a subshell.
like image 980
Drake Guan Avatar asked Jun 09 '12 15:06

Drake Guan


1 Answers

The pydoc module provides it:

$ python -m pydoc os.system
Help on built-in function system in os:

os.system = system(...)
    system(command) -> exit_status

    Execute the command (a string) in a subshell.
$
like image 188
Ned Batchelder Avatar answered Sep 22 '22 06:09

Ned Batchelder