I have an object gui_project
which has an attribute .namespace
, which is a namespace dict. (i.e. a dict from strings to objects.)
(This is
This is how I would do this (I did something similar before and it worked):
Now, when you unpickle, you get back all the variables that were originally pickleable. For all variables that were not pickleable, you now have a list of strings (legal python code) that when executed in order, gives you the desired variable.
Hope this helps