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
Possibly related to #1 (not sure what the current status of appengine support is)
Using dill on appengine (python 2.7), where ctypes is unavailable (so triggers the HAS_CTYPES = False path)
Trying to pickle an in-line function that references a variable in the outer scope causes a cell error. Here is a reproducible case:
# Disable ctypes -- you could also just set HAS_CTYPES = False in dill.pyimportctypesimportsyssys.modules['ctypes'] =Noneimportdilldefouter():
x=1definner():
xdill.loads(dill.dumps(inner))
outer()
Causes the following error:
File "pickletest.py", line 11, in <module>
outer()
File "pickletest.py", line 9, in outer
dill.loads(dill.dumps(inner))
File ".../dill/dill.py", line 259, in loads
return load(file)
File ".../dill/dill.py", line 249, in load
obj = pik.load()
File ".../lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File ".../lib/python2.7/pickle.py", line 1083, in load_newobj
obj = cls.__new__(cls, *args)
TypeError: object.__new__(cell) is not safe, use cell.__new__()
Apologies if this is intentionally unsupported at the moment.
The text was updated successfully, but these errors were encountered:
Possibly related to #1 (not sure what the current status of appengine support is)
Using dill on appengine (python 2.7), where ctypes is unavailable (so triggers the
HAS_CTYPES = False
path)Trying to pickle an in-line function that references a variable in the outer scope causes a
cell
error. Here is a reproducible case:Causes the following error:
Apologies if this is intentionally unsupported at the moment.
The text was updated successfully, but these errors were encountered: