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 ​Debug​Repr​Generator 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 ​Regex​Type 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):
Creates a debug repr of an object as HTML string.
Parameters
obj:objectUndocumented
Returns
strUndocumented
def dump(obj=missing):
Print the object details to stdout._write (for the interactive console of the web debugger.
Parameters
obj:objectUndocumented
HELP_HTML: str =

Undocumented

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

Undocumented

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

Undocumented

missing =

Undocumented

RegexType =

Undocumented

def _add_subclass_info(inner, obj, base):

Undocumented

Parameters
inner:strUndocumented
obj:objectUndocumented
base:t.Union[t.Type, t.Tuple[t.Type, ...]]Undocumented
Returns
strUndocumented
def _sequence_repr_maker(left, right, base, limit=8):

Undocumented

Parameters
left:strUndocumented
right:strUndocumented
base:t.TypeUndocumented
limit:intUndocumented
Returns
t.Callable[[DebugReprGenerator, t.Iterable, bool], str]Undocumented
_paragraph_re =

Undocumented