Changeset 391 for python/trunk/Doc/library/pydoc.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/pydoc.rst
r2 r391 1 2 1 :mod:`pydoc` --- Documentation generator and online help system 3 2 =============================================================== … … 15 14 single: documentation; online 16 15 single: help; online 16 17 **Source code:** :source:`Lib/pydoc.py` 18 19 -------------- 17 20 18 21 The :mod:`pydoc` module automatically generates documentation from Python … … 44 47 only execute code when a file is invoked as a script and not just imported. 45 48 46 Specifying a :option:`-w` flag before the argument will cause HTML documentation49 Specifying a ``-w`` flag before the argument will cause HTML documentation 47 50 to be written out to a file in the current directory, instead of displaying text 48 51 on the console. 49 52 50 Specifying a :option:`-k` flag before the argument will search the synopsis53 Specifying a ``-k`` flag before the argument will search the synopsis 51 54 lines of all available modules for the keyword given as the argument, again in a 52 55 manner similar to the Unix :program:`man` command. The synopsis line of a … … 54 57 55 58 You can also use :program:`pydoc` to start an HTTP server on the local machine 56 that will serve documentation to visiting Web browsers. :program:`pydoc `57 :option:`-p 1234`will start a HTTP server on port 1234, allowing you to browse59 that will serve documentation to visiting Web browsers. :program:`pydoc -p 1234` 60 will start a HTTP server on port 1234, allowing you to browse 58 61 the documentation at ``http://localhost:1234/`` in your preferred Web browser. 59 :program:`pydoc ` :option:`-g` will start the server and additionally bring up a62 :program:`pydoc -g` will start the server and additionally bring up a 60 63 small :mod:`Tkinter`\ -based graphical interface to help you search for 61 64 documentation pages. 62 65 63 66 When :program:`pydoc` generates documentation, it uses the current environment 64 and path to locate modules. Thus, invoking :program:`pydoc ` :option:`spam`67 and path to locate modules. Thus, invoking :program:`pydoc spam` 65 68 documents precisely the version of the module you would get if you started the 66 69 Python interpreter and typed ``import spam``.
Note:
See TracChangeset
for help on using the changeset viewer.