3.10.1. sciexp2.common.pp.Pretty

Methods

pformat(pretty, cycle[, name])

Return pretty representation.

class Pretty

Bases: object

Provide repr/str through IPython’s pretty module.

Child classes must implement the _repr_pretty_ method.

pformat(pretty, cycle, name=None)

Return pretty representation.

Automatically handles cycles and adds a proper group with the class name.

This is designed to be used on a with statement.