Open nbruin opened 8 years ago
The proposed fix is to pickle boolean functions in 0 or 1 variables with a different encoding format. This should be backward compatible with how functions with more variables were pickled before.
def __reduce__(self):
if self.nvariables() <2:
return unpickle_BooleanFunction, (self.truth_table(format='int'),)
else
unpickle_BooleanFunction, (self.truth_table(format='hex'),)
Presently:
This is because
This problem was reported in the thread of https://groups.google.com/d/msg/sage-devel/evIMO7NEFNc/GzCwfqv1AAAJ and a fix is proposed there.
CC: @jpflori
Component: coding theory
Issue created by migration from https://trac.sagemath.org/ticket/21038