decorators - Useful little decorators

log_calls(func)

Logs all func calls’ arguments under func.calls. func.calls is a list of _unify_args() result (dict). Mostly used for unit testing.

Logs func name and all func calls’ arguments with logging.info(). Mostly used for debugging. the name @log_calls was already taken...

Previous topic

conflict - Detect and resolve name conflicts

Next topic

files - Manipulate files and folders

This Page