Mike McKerns

Results 9 comments of Mike McKerns

This would probably be something to work out with the `wrapt` developers. I'd like to not stuff too many 3rd-party specific objects in `dill` -- however, if this ends up...

@jabooth: I agree with your analysis. I see you options are to either add pickle support (which should be more robust), or to diagnose why the `wrapt` functions are detected...

@jabooth: While `dill` can handle most closures, I build almost all of my complex decorators that are intended to retain certain behaviors (much like `wrapt`) as classes. Most class variants...

Serializers reach out and touch `__main__` primarily through the global dict which is required for serializing any function especially in a closure (as referenced above). `dill` has several variants that...

I've had some feedback from @MaximilianR, that `celery` also (infrequently?) sees this issue when using `celery` (as opposed to `ipyparallel`) in a notebook. So, it still could be something with...

I don't have a minimal example yet, for the "low-frequency" case… but do have something interesting to report. If `dill.dumps` is used with`pickle.loads` (not `dill.loads`), then this error is seen....

(I randomly saw this...) related? https://stackoverflow.com/questions/35913975/pickle-load-works-in-ipython-and-breaks-in-jupyter-notebook (at least to the issue with `celery`) -- I expect not, but anyway just another datapoint

> Due to limitations in dill, classes defined in the `__main__` module can't be pickled. This isn't true. ``` Python 3.7.14 (default, Sep 10 2022, 11:17:06) [Clang 10.0.1 (clang-1001.0.46.4)] on...