Minimal example app here.
In short, in the client environment, creating an OrderedDict, setting an element via setdefault
and then trying to print the OrderedDict gives RuntimeError: odict changed size during iteration
. The same doesn’t happen if the element is set via standard assignment.
This would be a fairly abstract problem if limited to printing but it also crops up when I’m trying to access elements of a double nested OrderedDict constructed this way.