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
__reduce_ex__ should be added to unary operator list.
File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.6/copy.py", line 181, in deepcopy
rv = reductor(2)
File "/usr/lib/pymodules/python2.6/staticconf/proxy.py", line 52, in method
return getattr(operator, name)(self.value, *args)
TypeError: __reduce_ex__() takes at most 1 argument (2 given)
The text was updated successfully, but these errors were encountered:
This method is used for pickling. Pickling a ValueProxy doesn't make much sense anyway (only the underlying .value should be pickled). For now I will remove reduce_ex so that it fails with a better error message of
TypeError: a class that defines __slots__ without defining __getstate__ cannot be pickled
__reduce_ex__
should be added to unary operator list.The text was updated successfully, but these errors were encountered: