Trees | Indices | Help |
|
---|
Generate Python documentation in HTML or text for interactive use. In the Python interpreter, do "from pydoc import help" to provide online help. Calling help(thing) on a Python object documents the object. Or, at the shell command line outside of Python: Run "pydoc <name>" to show documentation on something. <name> may be the name of a function, module, package, or a dotted reference to a class or function within a module or module in a package. If the argument contains a path segment delimiter (e.g. slash on Unix, backslash on Windows) it is treated as the path to a Python source file. 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 also pops up a little window for controlling it. Run "pydoc -w <name>" to write out the HTML documentation for a module to a file named "<name>.html". Module docs for core modules are assumed to be in http://www.python.org/doc/current/lib/ This can be overridden by setting the PYTHONDOCS environment variable to a different URL or to a local directory containing the Library Reference Manual pages.
Version: $Revision: 50881 $
Date: 26 February 2001
Author: Ka-Ping Yee <ping@lfw.org>
{
}
){
}
)'
Python Library Documentation: %s
'
,
forceload=0)'
'
,
done=None)'
Guido van Rossum, for an excellent programming
...
re.compile(r'(?i)
at 0x[
0-
9a-
f]
{6,16}
(
>+
)
$')
TextDoc()
HTMLDoc()
<pydoc.Helper instance>
Imports: sys, imp, os, re, types, inspect, __builtin__, pkgutil, Repr, expandtabs, find, join, lower, split, strip, rfind, rstrip, deque
Split sequence s via predicate, and return pair ([true], [false]). The return value is a 2-tuple of lists, ([x for x in s if predicate(x)], [x for x in s if not predicate(x)])
{
}
)
Import a module; handle errors; return None if the module isn't found.
If the module *is* found but an exception occurs, it's wrapped in an ErrorDuringImport exception and reraised. Unlike __import__, if a package path is specified, the module at the end of the path is returned, not the package at the beginning. If the optional 'forceload' argument is 1, we reload the module from disk (unless it's a dynamic extension).
Simply print unformatted text. This is the ultimate fallback.
'''
Guido van Rossum, for an excellent programming language.
Tommy Burnette, the original creator of manpy.
Paul Prescod, for all his work on onlinehelp.
Richard Chamberlain, for the first implementation of textdoc.
'''
Trees | Indices | Help |
|
---|