You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the following code is triggered, then you will be told that there is a TypeError: can't set attributes of built-in/extension type 'object'. I guess it should be setattr(instance, key, value).
def set_python_instance_state(self, instance, state):
......
for key, value in slotstate.items():
setattr(object, key, value)
The text was updated successfully, but these errors were encountered:
If the following code is triggered, then you will be told that there is a TypeError: can't set attributes of built-in/extension type 'object'. I guess it should be setattr(instance, key, value).
The text was updated successfully, but these errors were encountered: