Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/pydoc.rst

    r2 r391  
    1 
    21:mod:`pydoc` --- Documentation generator and online help system
    32===============================================================
     
    1514   single: documentation; online
    1615   single: help; online
     16
     17**Source code:** :source:`Lib/pydoc.py`
     18
     19--------------
    1720
    1821The :mod:`pydoc` module automatically generates documentation from Python
     
    4447   only execute code when a file is invoked as a script and not just imported.
    4548
    46 Specifying a :option:`-w` flag before the argument will cause HTML documentation
     49Specifying a ``-w`` flag before the argument will cause HTML documentation
    4750to be written out to a file in the current directory, instead of displaying text
    4851on the console.
    4952
    50 Specifying a :option:`-k` flag before the argument will search the synopsis
     53Specifying a ``-k`` flag before the argument will search the synopsis
    5154lines of all available modules for the keyword given as the argument, again in a
    5255manner similar to the Unix :program:`man` command.  The synopsis line of a
     
    5457
    5558You 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 browse
     59that will serve documentation to visiting Web browsers. :program:`pydoc -p 1234`
     60will start a HTTP server on port 1234, allowing you to browse
    5861the documentation at ``http://localhost:1234/`` in your preferred Web browser.
    59 :program:`pydoc` :option:`-g` will start the server and additionally bring up a
     62:program:`pydoc -g` will start the server and additionally bring up a
    6063small :mod:`Tkinter`\ -based graphical interface to help you search for
    6164documentation pages.
    6265
    6366When :program:`pydoc` generates documentation, it uses the current environment
    64 and path to locate modules.  Thus, invoking :program:`pydoc` :option:`spam`
     67and path to locate modules.  Thus, invoking :program:`pydoc spam`
    6568documents precisely the version of the module you would get if you started the
    6669Python interpreter and typed ``import spam``.
Note: See TracChangeset for help on using the changeset viewer.