mahacoder
mahacoder

Reputation: 913

Pydoc in windows

I am learning python from "Learning python the hard way". To use pydoc, I have been asked to type the following in the terminal:

python -m pydoc xxx

I want to know what the -m signifies here. I googled quite a bit but couldn't find any answer.

Upvotes: 1

Views: 198

Answers (1)

user2776601
user2776601

Reputation:

It basically looks at sys.path and load the module (given as argument) and execute its contents as the __main__ module. Refer to man page for details.

Upvotes: 3

Related Questions