circuits.core.helpers module

class circuits.core.helpers.FallBackGenerator(*args, **kwargs)

Bases: BaseComponent

initializes x; see x.__class__.__doc__ for signature

resume()

Implements the resume method as required from components that handle GenerateEvents.

class circuits.core.helpers.FallBackExceptionHandler(*args, **kwargs)

Bases: BaseComponent

If there is no handler for error events in the component hierarchy, this component’s handler is added automatically. It simply prints the error information on stderr.

initializes x; see x.__class__.__doc__ for signature

class circuits.core.helpers.FallBackSignalHandler(*args, **kwargs)

Bases: BaseComponent

If there is no handler for signal events in the component hierarchy, this component’s handler is added automatically. It simply terminates the system if the signal is SIGINT or SIGTERM.

initializes x; see x.__class__.__doc__ for signature