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
The variable viewer works fine as I can still view the instance, it's just this issue reporter itself poped up. when trying to view it.
Here's an example class that reproduced this bug:
classFoo(object):
def__init__(self, val=2):
self.val=valdef__getstate__(self):
print("I'm being pickled")
self.val*=2returnself.__dict__def__setstate__(self, d):
print("I'm being unpickled with these values: "+repr(d))
self.__dict__=dself.val*=3f=Foo()
And then double click instance f in the variable explorer to view it.
Hey @howaboutnothavinganame, thanks for reporting. It seems __setstate__ interferes with the unpickling we need to do on the Spyder side to display the object.
We'll try to take a look at this problem in a future release.
ccordoba12
changed the title
'Issue reporter' poped out when double click to view instances with user-defined __getstate__ & __setstate__
Issue reporter pops out when viewing class instances with user-defined __setstate__Jan 27, 2025
Description
What steps will reproduce the problem?
The variable viewer works fine as I can still view the instance, it's just this issue reporter itself poped up. when trying to view it.
Here's an example class that reproduced this bug:
And then double click instance f in the variable explorer to view it.
Cheers
Versions
Dependencies
The text was updated successfully, but these errors were encountered: