To get help on python when in the PowerShell window, type:

python -m pydoc raw_input

substituting your function name for raw_input.

Answer from Mary Meerschaert on Stack Overflow
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ pydoc.html
pydoc โ€” Documentation generator and online help system ...
During development this is especially useful if you want to run pydoc from within a container. python -m pydoc -b will start the server and additionally open a web browser to a module index page.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ [beginner, powershell] help with pydoc command in terminal
r/learnpython on Reddit: [Beginner, Powershell] Help with pydoc command in terminal
August 13, 2016 -

Using Learning Python the Hard Way by Zed Shaw, but having some trouble understanding the pydoc command in terminal.

I've a python file named ex12.py which I assume is the pydoc, so I know my command should be "python -m ex12.py" but I'm not getting any results.

As far as I know, -m stands for mod, but it just opens the file and runs it as if I were running it through Python.

Please help!

Discussions

python - How to get pydoc command working in Windows 7 cmd? - Stack Overflow
Oh I have already changed to @python c:\Python27\Lib\pydoc.py %* It's still showing error. 2011-04-23T07:42:05.9Z+00:00 ... I run a Windows 7. I am using the command prompt, cmd. I am learning Python from Learning Python the Hard Way. I was having the same problem as you, and attempted to solve ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
February 15, 2012
python - How to get pydoc command working in Windows? - Stack Overflow
pydoc does not work in Windows. at this post Pydoc is not working (Windows XP) the last answer by dave webb says to create a pydoc.bat file with this code in it: @python c:\Python27\Lib\pydoc.py %* More on stackoverflow.com
๐ŸŒ stackoverflow.com
Pydoc in windows
python.exe -m pydoc open will display the open() builtin documentation. What exactly do you need to be using pydoc for? More on reddit.com
๐ŸŒ r/Python
9
3
September 6, 2010
python - How do I create documentation with Pydoc? - Stack Overflow
I'm trying to create a document out of my module. I used pydoc from the command-line in Windows 7 using Python 3.2.3: python " \pydoc.py" -w myModule This led to my shell being More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
djangoSpin
djangospin.com โ€บ pydoc-pythons-help-system
PyDoc in Python | Python's Documentation System | djangoSpin | Lakshay Arora
April 5, 2017 - It provides documentation on modules ... the docstrings of the same module. In order to run PyDoc, you need to use the -m flag of python in command prompt, which asks the command prompt to run the library module as a scr...
๐ŸŒ
Dennis O'Keeffe
dennisokeeffe.com โ€บ blog โ€บ 2021-08-07-how-pydoc-helps-your-python-development
How PyDoc Helps Your Python Development
August 7, 2021 - As a simple starter, we can use PyDoc to explore the documentation of the datetime module from the command line. To do so, we can run python -m pydoc [module] and we should see the output based on the doc strings for each of the functions in ...
๐ŸŒ
Python Module of the Week
pymotw.com โ€บ 3 โ€บ pydoc
pydoc โ€” Online Help for Modules
December 18, 2016 - $ pydoc -p 5000 Server ready at http://localhost:5000/ Server commands: [b]rowser, [q]uit server> q Server stopped
Find elsewhere
๐ŸŒ
Hyperskill
hyperskill.org โ€บ learn โ€บ step โ€บ 18505
Pydoc
Hyperskill is an educational platform for learning programming and software development through project-based courses, that helps you secure a job in tech. Master Python, Java, Kotlin, and more with real-world coding challenges.
๐ŸŒ
Saddlebackcss
saddlebackcss.github.io โ€บ tutorials โ€บ python โ€บ basic โ€บ 2016 โ€บ 01 โ€บ 14 โ€บ python-basics-4
Python Basics 4: Docstrings, pydoc, doctest, and Function Annotations
January 14, 2016 - By default, pydoc will display the documentation on the command-line. To generate HTML files, use the -w option. The doctest module allows for automated testing of functions based on examples in the docstrings. When run, the below script will execute the tests in the docstring for hypotenuse ...
๐ŸŒ
Python
docs.python.org โ€บ 3.2 โ€บ library โ€บ pydoc.html
25.1. pydoc โ€” Documentation generator and online help system โ€” Python v3.2.6 documentation
October 12, 2014 - The built-in function help() invokes the online help system in the interactive interpreter, which uses pydoc to generate its documentation as text on the console. The same text documentation can also be viewed from outside the Python interpreter by running pydoc as a script at the operating systemโ€™s command prompt.
๐ŸŒ
Kyleburke
kyleburke.info โ€บ pydocOnWindows.php
pydoc on Windows - Kyle Burke
There will be a pydoc file in both Lib and libs. Choose to use the Lib directory, not libs. Earlier versions of windows don't have as nice of an interface to add environmental variables to PATH. You may need to append it to the path variable without the interface. Simply add a semicolon to the end of the PATH line and put the path there.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ article โ€บ documentation-generation-using-the-pydoc-module-in-python
Documentation generation using the pydoc module in Python
import pydoc # Launch interactive help pydoc.help() In the interactive shell, you can enter module names, functions, classes, or keywords to view their documentation. Type "quit" to exit the help system. To view documentation in your web browser, use the command-line interface with the -b flag ?
๐ŸŒ
Python
docs.python.org โ€บ 3.10 โ€บ library โ€บ pydoc.html
pydoc โ€” Documentation generator and online help system โ€” Python 3.10.19 documentation
During development this is especially useful if you want to run pydoc from within a container. python -m pydoc -b will start the server and additionally open a web browser to a module index page. Each served page has a navigation bar at the top where you can Get help on an individual item, ...
๐ŸŒ
SourceForge
epydoc.sourceforge.net โ€บ stdlib โ€บ pydoc-module.html
Module pydoc - SourceForge
Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines of all available modules. Run "pydoc -p <port>" to start an HTTP server on a given port on the local machine to generate documentation web pages. For platforms without a command line, "pydoc -g" starts the HTTP server and ...
๐ŸŒ
DEV Community
dev.to โ€บ okeeffed โ€บ how-pydoc-helps-your-python-development-432h
How PyDoc Helps Your Python Development - DEV Community
September 13, 2021 - As a simple starter, we can use PyDoc to explore the documentation of the datetime module from the command line. To do so, we can run python -m pydoc [module] and we should see the output based on the doc strings for each of the functions in ...
๐ŸŒ
Read the Docs
stackless.readthedocs.io โ€บ en โ€บ 2.7-slp โ€บ library โ€บ pydoc.html
25.1. pydoc โ€” Documentation generator and online help system โ€” Stackless-Python 2.7.15 documentation
If there is no docstring, pydoc tries to obtain a description from the block of comment lines just above the definition of the class, function or method in the source file, or at the top of the module (see inspect.getcomments()). The built-in function help() invokes the online help system in the interactive interpreter, which uses pydoc to generate its documentation as text on the console. The same text documentation can also be viewed from outside the Python interpreter by running pydoc as a script at the operating systemโ€™s command prompt.