From 2883f1a32e38c99e66ee415c11b69a4a53696224 Mon Sep 17 00:00:00 2001 From: astaric Date: Tue, 10 Oct 2017 21:28:53 +0200 Subject: [PATCH] Variable: Do not pickle master attribute --- Orange/data/variable.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Orange/data/variable.py b/Orange/data/variable.py index 69fc5e940dd..a2ba45d9827 100644 --- a/Orange/data/variable.py +++ b/Orange/data/variable.py @@ -425,7 +425,9 @@ def __reduce__(self): if not self.name: raise PickleError("Variables without names cannot be pickled") - return make_variable, (self.__class__, self._compute_value, self.name), self.__dict__ + __dict__ = dict(self.__dict__) + __dict__.pop("master", None) + return make_variable, (self.__class__, self._compute_value, self.name), __dict__ def copy(self, compute_value): var = type(self)(self.name, compute_value=compute_value)