We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0f953 commit 48e9e20Copy full SHA for 48e9e20
graalpython/lib-graalpython/object.py
@@ -90,6 +90,9 @@ def reduce_newobj(obj):
90
try:
91
getstate = obj.__getstate__
92
except AttributeError:
93
+ if getattr(type(obj), '__itemsize__', None):
94
+ raise TypeError("cannot pickle '{}' object".format(type(obj).__name__))
95
+
96
state = getattr(obj, "__dict__", None)
97
names = slotnames(cls) # not checking for list
98
if names is not None:
0 commit comments