hybrid.core.State.updated#

State.updated(**kwargs)[source]#

Return a (deep) copy of the state, updated from kwargs.

This method has dict.update semantics with immutability of sorted. Currently an exception is the debug key, if it exists, for which a depth-unlimited recursive merge is executed.

Example

>>> state = State()
>>> state
{}
>>> newstate = state.updated(problem="test")
>>> newstate
{'problem': 'test'}