Slot instances cannot be pickled
Working on the frontend to add support for starting slots, I found out that Slot
instances cannot be pickled because of an infinite recursion in Slot.__getstate__
, in particular in the return copy.deepcopy(dct)
call (the problem is sort of obvious).
Unfortunately the test to pickle a Slot was disabled.
We should resurrect the feature.