Under python 3.7, dill
fails to pickle sympy.Float
objects when the "recurse" setting is set to True:
dill.settings["recurse"] = True
import sympy
tst = sympy.Float(3.3)
dill.detect.errors(tst)
This fails with RecursionError('maximum recursion depth exceeded in comparison')
.
Does anybody know a workaround?
The error disappears for Python >=3.8, and also does not occur in the absence of the "recurse" setting. Unfortunately I need to support Python 3.7 and am forced to use the "recurse" mode.