This commit introduced a closure which is stored on the cell. Now, if I try to pickle a cell I get this:
AttributeError: Can't get local object '_make_dhs_solve.._solve'
Is it reasonable to expect to be able to pickle a cell? It's certainly useful for a variety of scenarios. One workaround is to delete that attribute from the cell object before pickling, but it's a bit annoying to do that every time.
This commit introduced a closure which is stored on the cell. Now, if I try to pickle a cell I get this:
AttributeError: Can't get local object '_make_dhs_solve.._solve'
Is it reasonable to expect to be able to pickle a cell? It's certainly useful for a variety of scenarios. One workaround is to delete that attribute from the cell object before pickling, but it's a bit annoying to do that every time.