ways.parsing.tracehelper module

Common functions used for tracing that cannot go into trace.py.

This module is used in situation.py. If a function in this module were used and imported by trace.py, it’d create a cyclic import.

ways.parsing.tracehelper.trace_method_resolution(method, plugins=False)[source]

Show the progression of how a Context’s method is resolved.

Parameters:
  • method (callable) – Some function on a Context object.
  • plugins (bool, optional) – If False, the result at every step of the method will be returned. If True, the Plugin that created each result will be returned al along with the result at every step. Default is False.
Returns:

The plugin resolution at each step.

Return type:

list