enthought / apptools

Other
37 stars 24 forks source link

StateSetter support for dynamically sized data structures #310

Open johannesloibl opened 2 years ago

johannesloibl commented 2 years ago

StateSetter only supports restoring the state of variables (list, tuple, dict) if the state of the variable and target variable have the same size. This is a problem if one wants to restore the state of arbitrarily nested objects with dynamic size, e.g. restore a list of dicts into an empty list.