I need to make a deepcopy of a dictionary containing a bunch of menu
items.
I tried calling copy.copy(menuItem) for every menu item in a
dictionary but that just returns a reference to the menuItem.
I also tried copy.deepcopy(menuItem) but that fails with
TypeError: object.__new__(PySwigObject) is not safe, use
PySwigObject.__new__()
So, how do I create a complete copy of a dictionary, no matter what's in
it?
Thanks,
Ratko