pyppin.testing.pprint_object

[View Source]

Pretty-print the contents of an object, including all its Python innards, for debugging.

Functions

pprint_object(thing[, file, recurse_into])

Pretty-print all the innards of an object.

pyppin.testing.pprint_object.pprint_object(thing: Any, file: Optional[IO[str]] = None, recurse_into: Optional[Iterable[str]] = None) None[source]

Pretty-print all the innards of an object.

Unlike pprint(thing), this will print everything in the objects dir, including __items__. This is basically for debugging.

Parameters
  • thing – What to print

  • file – Where to print it (default stdout)

  • recurse_into – Any variable names listed here will be expanded recursively.