bpod_core.misc.set_nested

bpod_core.misc.set_nested(d, keys, value) None

Set a value in a nested dict, creating intermediate dicts as needed.

Parameters:
  • d (MutableMapping) – The dictionary in which to set the value.

  • keys (Sequence) – A sequence of keys representing the nested path where the value should be set.

  • value (Any) – The value to set at the specified path.

Return type:

None