globalsΒΆ

Methods for handling global state.

Functions

map_global(callback_func, *args, **kwargs)

Call the given function with the given (keyword-)arguments and provide the current value stored in the global state variable to the function as the first parameter.

with_global(initial_state, callback_func, ...)

Call the given Guppy function in a context where the global state is available through map_global() calls (see map_global() for more context).