Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | ErrorDuringImport |
class | Doc |
class | HTMLRepr |
class | HTMLDoc |
class | TextRepr |
class | TextDoc |
class | Helper |
class | Scanner |
class | ModuleScanner |
Functions | |
def | pathdirs |
def | getdoc |
def | splitdoc |
def | classname |
def | isdata |
def | replace |
def | cram |
def | stripid |
def | allmethods |
def | ispackage |
def | synopsis |
def | importfile |
def | safeimport |
def | pager |
def | getpager |
def | plain |
def | pipepager |
def | tempfilepager |
def | ttypager |
def | plainpager |
def | describe |
def | locate |
def | doc |
def | writedoc |
def | writedocs |
def | apropos |
def | serve |
def | gui |
def | ispath |
def | cli |
Variables | |
string | __author__ = "Ka-Ping Yee <ping@lfw.org>" |
string | __date__ = "26 February 2001" |
string | __version__ = "$Revision: 5816 $" |
string | __credits__ |
tuple | text = TextDoc() |
tuple | html = HTMLDoc() |
tuple | help = Helper(sys.stdin, sys.stdout) |
encodingheader | |
typeheader | |
address | |
url | |
callback | |
quit | |
window | |
server | |
scanner | |
server_frm | |
title_lbl | |
open_btn | |
quit_btn | |
search_frm | |
search_lbl | |
search_ent | |
stop_btn | |
result_lst | |
result_scr | |
result_frm | |
goto_btn | |
hide_btn | |
minwidth | |
minheight | |
bigminheight | |
bigheight | |
expanded | |
bigwidth | |
def pydoc.allmethods | ( | cl) |
def pydoc.apropos | ( | key) |
Print all the one-line module summaries that contain a substring.
Definition at line 1745 of file pydoc.py.
References callback, warnings.filterwarnings(), and imaplib.run().
def pydoc.classname | ( | object, | |
modname | |||
) |
Get a class name and qualify it with a module name if necessary.
def pydoc.cli | ( | ) |
Command-line interface (looks at sys.argv to decide what to do).
Definition at line 2030 of file pydoc.py.
References apropos(), doc(), getopt.getopt(), gui(), importfile(), ispath(), serve(), writedoc(), and writedocs().
def pydoc.cram | ( | text, | |
maxlen | |||
) |
Omit part of a string if needed to make it fit in a maximum length.
Definition at line 98 of file pydoc.py.
References sre_parse.max.
def pydoc.describe | ( | thing) |
Produce a short description of the given thing.
Definition at line 1275 of file pydoc.py.
References inspect.isbuiltin(), inspect.isclass(), inspect.isfunction(), inspect.ismethod(), and inspect.ismodule().
def pydoc.doc | ( | thing, | |
title = 'Python Library Documentation: %s' , |
|||
forceload = 0 |
|||
) |
Display text documentation, given an object or a path to an object.
Definition at line 1320 of file pydoc.py.
References describe(), inspect.getmodule(), dospath.join(), locate(), pager(), and dospath.split().
def pydoc.getdoc | ( | object) |
Get the doc string or comments for an object.
Definition at line 64 of file pydoc.py.
References inspect.getcomments(), inspect.getdoc(), and string.rstrip().
def pydoc.getpager | ( | ) |
Decide what method to use for paging through text.
Definition at line 1177 of file pydoc.py.
References aifc.close(), tempfile.mktemp(), aifc.open(), pipepager(), plain(), and tempfilepager().
def pydoc.gui | ( | ) |
Graphical interface (starts web server and pops up a control window).
Definition at line 1849 of file pydoc.py.
References audiodev.__init__().
def pydoc.importfile | ( | path) |
Import a Python source file or compiled file given its path.
Definition at line 198 of file pydoc.py.
References aifc.open().
def pydoc.isdata | ( | object) |
Check if an object is of a type that probably means it's data.
Definition at line 85 of file pydoc.py.
References inspect.isclass(), inspect.iscode(), inspect.isframe(), inspect.ismodule(), inspect.isroutine(), and inspect.istraceback().
def pydoc.ispackage | ( | path) |
Guess whether a path refers to a package directory.
def pydoc.ispath | ( | x) |
def pydoc.locate | ( | path, | |
forceload = 0 |
|||
) |
Locate an object by name or dotted path, importing as necessary.
Definition at line 1296 of file pydoc.py.
References dospath.join(), safeimport(), and dospath.split().
def pydoc.pager | ( | text) |
def pydoc.pathdirs | ( | ) |
def pydoc.pipepager | ( | text, | |
cmd | |||
) |
Page through text by feeding it to another program.
def pydoc.plain | ( | text) |
def pydoc.plainpager | ( | text) |
def pydoc.replace | ( | text, | |
pairs | |||
) |
Do a series of global replacements on a string.
Definition at line 91 of file pydoc.py.
References dospath.join(), and dospath.split().
def pydoc.safeimport | ( | path, | |
forceload = 0 , |
|||
cache = {} |
|||
) |
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).
Definition at line 217 of file pydoc.py.
References inspect.getmoduleinfo(), string.lower(), dospath.split(), and locale.str().
def pydoc.serve | ( | port, | |
callback = None , |
|||
completer = None |
|||
) |
def pydoc.splitdoc | ( | doc) |
Split a doc string into a synopsis line (if any) and the rest.
Definition at line 69 of file pydoc.py.
References dospath.join(), string.rstrip(), dospath.split(), and string.strip().
def pydoc.stripid | ( | text) |
Remove the hexadecimal id from a Python object representation.
Definition at line 106 of file pydoc.py.
References inspect.ismethod(), and inspect.ismethoddescriptor().
def pydoc.synopsis | ( | filename, | |
cache = {} |
|||
) |
Get the one-line summary out of a module file.
Definition at line 153 of file pydoc.py.
References inspect.getmoduleinfo(), aifc.open(), dospath.split(), and string.strip().
def pydoc.tempfilepager | ( | text, | |
cmd | |||
) |
Page through text by invoking a program on a temporary file.
Definition at line 1221 of file pydoc.py.
References tempfile.mktemp(), and aifc.open().
def pydoc.ttypager | ( | text) |
Page through text on a text terminal.
Definition at line 1233 of file pydoc.py.
References dospath.join(), plain(), tty.setcbreak(), and dospath.split().
def pydoc.writedoc | ( | key, | |
forceload = 0 |
|||
) |
Write HTML documentation to a file in the current directory.
Definition at line 1343 of file pydoc.py.
References describe(), locate(), and aifc.open().
def pydoc.writedocs | ( | dir, | |
pkgpath = '' , |
|||
done = None |
|||
) |
Write out HTML documentation for all modules in a directory tree.
Definition at line 1360 of file pydoc.py.
References inspect.getmodulename(), ispackage(), and writedoc().
string __credits__ |