module documentation

Object representations for debugging purposes. Unlike the default repr, these expose more information and produce HTML instead of ASCII. Together with the CSS and JavaScript of the debugger this gives a colorful and more compact output.

Class DebugReprGenerator Undocumented
Function debug_repr Creates a debug repr of an object as HTML string.
Function dump Print the object details to stdout._write (for the interactive console of the web debugger.
Constant HELP_HTML Undocumented
Constant OBJECT_DUMP_HTML Undocumented
Variable helper Undocumented
Variable missing Undocumented
Variable RegexType Undocumented
Class _Helper Displays an HTML version of the normal help, for the interactive debugger only because it requires a patched sys.stdout.
Function _add_subclass_info Undocumented
Function _sequence_repr_maker Undocumented
Variable _paragraph_re Undocumented
def debug_repr(obj: object) -> str: (source)

Creates a debug repr of an object as HTML string.

def dump(obj: object = missing): (source)

Print the object details to stdout._write (for the interactive console of the web debugger.

HELP_HTML: str = (source)

Undocumented

Value
'''<div class=box>
  <h3>%(title)s</h3>
  <pre class=help>%(text)s</pre>
</div>'''
OBJECT_DUMP_HTML: str = (source)

Undocumented

Value
'''<div class=box>
  <h3>%(title)s</h3>
  %(repr)s
  <table>%(items)s</table>
</div>'''

Undocumented

Undocumented

RegexType = (source)

Undocumented

def _add_subclass_info(inner: str, obj: object, base: t.Union[t.Type, t.Tuple[t.Type, ...]]) -> str: (source)

Undocumented

def _sequence_repr_maker(left: str, right: str, base: t.Type, limit: int = 8) -> t.Callable[[DebugReprGenerator, t.Iterable, bool], str]: (source)

Undocumented

_paragraph_re = (source)

Undocumented