We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 298a099 commit 35621d3Copy full SHA for 35621d3
dill/utils.py
@@ -40,7 +40,7 @@ def discard(self, item):
40
except ValueError:
41
pass
42
def __reduce__(self):
43
- return CheckerSet, (self.checker, iter(self))
+ return CheckerSet, (self.checker, tuple(self))
44
45
class TransSet(set):
46
"""transformer set that uses a constructor to modify added items"""
@@ -54,5 +54,5 @@ def discard(self, item):
54
def remove(self, item):
55
super().remove(self.constructor(item))
56
57
- return TransSet, (self.constructor, iter(self))
+ return TransSet, (self.constructor, tuple(self))
58
0 commit comments