Ticket #232 (new defect)
Constructor.set_python_instance_state defect with object without __setstate__ function
|Reported by:||felix.antoine.fortin@…||Owned by:||xi|
There is a bug in Constructor.set_python_instance_state, the last for loops of the function tries to set attribute on the object 'object' instead of the object 'instance'.
I stumbled on the bug when trying to load an object who had a getstate function but no setstate.
The patch is straightforward, just have to replace object on line 563, by instance.