| |
- exceptions.Exception(exceptions.BaseException)
-
- ErrorDuringImport
- Doc
-
- HTMLDoc
- TextDoc
- Helper
- ModuleScanner
- Scanner
- repr.Repr
-
- HTMLRepr
- TextRepr
class Doc |
| |
Methods defined here:
- docclass = fail(self, object, name=None, *args)
- docdata = fail(self, object, name=None, *args)
- docmodule = fail(self, object, name=None, *args)
- docother = fail(self, object, name=None, *args)
- docproperty = fail(self, object, name=None, *args)
- docroutine = fail(self, object, name=None, *args)
- document(self, object, name=None, *args)
- Generate documentation for an object.
- fail(self, object, name=None, *args)
- Raise an exception for unimplemented types.
- getdocloc(self, object)
- Return the location of module docs or None
|
class HTMLDoc(Doc) |
|
Formatter class for HTML documentation. |
|
Methods defined here:
- bigsection(self, title, *args)
- Format a section with a big heading.
- classlink(self, object, modname)
- Make a link for a class.
- docclass(self, object, name=None, mod=None, funcs={}, classes={}, *ignored)
- Produce HTML documentation for a class object.
- docdata(self, object, name=None, mod=None, cl=None)
- Produce html documentation for a data descriptor.
- docmodule(self, object, name=None, mod=None, *ignored)
- Produce HTML documentation for a module object.
- docother(self, object, name=None, mod=None, *ignored)
- Produce HTML documentation for a data object.
- docproperty(self, object, name=None, mod=None, cl=None)
- Produce html documentation for a property.
- docroutine(self, object, name=None, mod=None, funcs={}, classes={}, methods={}, cl=None)
- Produce HTML documentation for a function or method object.
- escape(self, text) from HTMLRepr
- formattree(self, tree, modname, parent=None)
- Produce HTML for a class tree as given by inspect.getclasstree().
- formatvalue(self, object)
- Format an argument default value as text.
- grey(self, text)
- heading(self, title, fgcol, bgcol, extras='')
- Format a page heading.
- index(self, dir, shadowed=None)
- Generate an HTML index for a directory of modules.
- markup(self, text, escape=None, funcs={}, classes={}, methods={})
- Mark up some plain text, given a context of symbols to look for.
Each context dictionary maps object names to anchor names.
- modpkglink(self, data)
- Make a link for a module or package to display in an index.
- modulelink(self, object)
- Make a link for a module.
- multicolumn(self, list, format, cols=4)
- Format a list of items into a multi-column list.
- namelink(self, name, *dicts)
- Make a link for an identifier, given name-to-URL mappings.
- page(self, title, contents)
- Format an HTML page.
- preformat(self, text)
- Format literal preformatted text.
- repr(self, object) from HTMLRepr
- section(self, title, fgcol, bgcol, contents, width=6, prelude='', marginalia=None, gap=' ')
- Format a section with a heading.
Methods inherited from Doc:
- document(self, object, name=None, *args)
- Generate documentation for an object.
- fail(self, object, name=None, *args)
- Raise an exception for unimplemented types.
- getdocloc(self, object)
- Return the location of module docs or None
|
class HTMLRepr(repr.Repr) |
|
Class for safely making an HTML representation of a Python object. |
|
Methods defined here:
- __init__(self)
- escape(self, text)
- repr(self, object)
- repr1(self, x, level)
- repr_instance(self, x, level)
- repr_str = repr_string(self, x, level)
- repr_string(self, x, level)
- repr_unicode = repr_string(self, x, level)
Methods inherited from repr.Repr:
- repr_array(self, x, level)
- repr_deque(self, x, level)
- repr_dict(self, x, level)
- repr_frozenset(self, x, level)
- repr_list(self, x, level)
- repr_long(self, x, level)
- repr_set(self, x, level)
- repr_tuple(self, x, level)
|
class Helper |
| |
Methods defined here:
- __call__(self, request=<object object>)
- __init__(self, input=None, output=None)
- __repr__(self)
- getline(self, prompt)
- Read one line, using raw_input when available.
- help(self, request)
- interact(self)
- intro(self)
- list(self, items, columns=4, width=80)
- listkeywords(self)
- listmodules(self, key='')
- listsymbols(self)
- listtopics(self)
- showsymbol(self, symbol)
- showtopic(self, topic, more_xrefs='')
Data descriptors defined here:
- input
- output
Data and other attributes defined here:
- keywords = {'and': 'BOOLEAN', 'as': 'with', 'assert': ('assert', ''), 'break': ('break', 'while for'), 'class': ('class', 'CLASSES SPECIALMETHODS'), 'continue': ('continue', 'while for'), 'def': ('function', ''), 'del': ('del', 'BASICMETHODS'), 'elif': 'if', 'else': ('else', 'while for'), ...}
- symbol = 'u"'
- symbols = {'!=': 'COMPARISON OPERATORS', '"': 'STRINGS', '"""': 'STRINGS', '%': 'OPERATORS FORMATTING', '%=': 'AUGMENTEDASSIGNMENT', '&': 'OPERATORS BITWISE', '&=': 'AUGMENTEDASSIGNMENT', "'": 'STRINGS', "'''": 'STRINGS', '(': 'TUPLES FUNCTIONS CALLS', ...}
- symbols_ = ("'", "'''", "r'", "u'", '"""', '"', 'r"', 'u"')
- topic = 'STRINGS'
- topics = {'ASSERTION': 'assert', 'ASSIGNMENT': ('assignment', 'AUGMENTEDASSIGNMENT'), 'ATTRIBUTEMETHODS': ('attribute-access', 'ATTRIBUTES SPECIALMETHODS'), 'ATTRIBUTES': ('attribute-references', 'getattr hasattr setattr ATTRIBUTEMETHODS'), 'AUGMENTEDASSIGNMENT': ('augassign', 'NUMBERMETHODS'), 'BACKQUOTES': ('string-conversions', 'repr str STRINGS LITERALS'), 'BASICMETHODS': ('customization', 'cmp hash repr str SPECIALMETHODS'), 'BINARY': ('binary', 'EXPRESSIONS'), 'BITWISE': ('bitwise', 'EXPRESSIONS'), 'BOOLEAN': ('booleans', 'EXPRESSIONS TRUTHVALUE'), ...}
|
class ModuleScanner |
|
An interruptible scanner that searches module synopses. |
|
Methods defined here:
- run(self, callback, key=None, completer=None, onerror=None)
|
class TextDoc(Doc) |
|
Formatter class for text documentation. |
|
Methods defined here:
- bold(self, text)
- Format a string in bold by overstriking.
- docclass(self, object, name=None, mod=None, *ignored)
- Produce text documentation for a given class object.
- docdata(self, object, name=None, mod=None, cl=None)
- Produce text documentation for a data descriptor.
- docmodule(self, object, name=None, mod=None)
- Produce text documentation for a given module object.
- docother(self, object, name=None, mod=None, parent=None, maxlen=None, doc=None)
- Produce text documentation for a data object.
- docproperty(self, object, name=None, mod=None, cl=None)
- Produce text documentation for a property.
- docroutine(self, object, name=None, mod=None, cl=None)
- Produce text documentation for a function or method object.
- formattree(self, tree, modname, parent=None, prefix='')
- Render in text a class tree as returned by inspect.getclasstree().
- formatvalue(self, object)
- Format an argument default value as text.
- indent(self, text, prefix=' ')
- Indent text by prepending a given prefix to each line.
- repr(self, x) from TextRepr
- section(self, title, contents)
- Format a section with a given heading.
Methods inherited from Doc:
- document(self, object, name=None, *args)
- Generate documentation for an object.
- fail(self, object, name=None, *args)
- Raise an exception for unimplemented types.
- getdocloc(self, object)
- Return the location of module docs or None
|
class TextRepr(repr.Repr) |
|
Class for safely making a text representation of a Python object. |
|
Methods defined here:
- __init__(self)
- repr1(self, x, level)
- repr_instance(self, x, level)
- repr_str = repr_string(self, x, level)
- repr_string(self, x, level)
Methods inherited from repr.Repr:
- repr(self, x)
- repr_array(self, x, level)
- repr_deque(self, x, level)
- repr_dict(self, x, level)
- repr_frozenset(self, x, level)
- repr_list(self, x, level)
- repr_long(self, x, level)
- repr_set(self, x, level)
- repr_tuple(self, x, level)
| |