pyworkflow.utils.echo module

This module trace through printing module and class functions… Code from: http://wordaligned.org/articles/echo

pyworkflow.utils.echo.echo(fn, write=<built-in method write of _io.TextIOWrapper object>)[source]
pyworkflow.utils.echo.echo_class(klass, write=<built-in method write of _io.TextIOWrapper object>)[source]

Echo calls to class methods and static functions

pyworkflow.utils.echo.echo_instancemethod(klass, method, write=<built-in method write of _io.TextIOWrapper object>)[source]

Change an instancemethod so that calls to it are echoed.

Replacing a classmethod is a little more tricky. See: http://www.python.org/doc/current/ref/types.html

pyworkflow.utils.echo.echo_module(mod, write=<built-in method write of _io.TextIOWrapper object>)[source]

Echo calls to functions and methods in a module.

pyworkflow.utils.echo.format_args(args)[source]
pyworkflow.utils.echo.is_class_private_name(name)[source]

Determine if a name is a class private name.

pyworkflow.utils.echo.is_classmethod(instancemethod)[source]

Determine if an instancemethod is a classmethod.

pyworkflow.utils.echo.method_name(method)[source]

Return a method’s name.

This function returns the name the method is accessed by from outside the class (i.e. it prefixes “private” methods appropriately).

pyworkflow.utils.echo.name(item)[source]

Return an item’s name.