pymor.tools.formatsrc

Module Contents

pymor.tools.formatsrc.format_source(obj)[source]

Format source code of an object.

Parameters:

obj – The object of which to format the source code.

Returns:

source – The source code as a string, possibly highlighted when used in a terminal.

pymor.tools.formatsrc.print_source(obj)[source]

Print source code of an object.

Parameters:

obj – The object of which to print the source code.