You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we make this switch? Cloudpickle handles a few pragmatic cases that dill does not, notably closures that include globals, e.g.
>>>importnumpyasnp>>>deff(x):
... returnnp.sin(x) +np.cos(x) # closed over np, a global
This can be switched with the experimental dill.settings['recurse'] = True setting, but I've found that this causes some very strange behavior (functions like int are sometimes lost.)
I've switched to cloudpickle in distributed and have so far been satisfied with the change.
Is there perhaps another way to expose the undesired behavior in dill? Or maybe is the preference for cloudpickle based on performance but not functionality?
@eribean Could you elaborate on a case where you would prefer cloudpickle rather than dill?
Activity
eribean commentedon Nov 25, 2015
This is beneficial for my projects, Im in favor of this change.
PedroMDuarte commentedon Dec 4, 2015
@mrocklin I started out by adding a test for something like the example you gave above:
https://github.com/PedroMDuarte/dask/compare/fd5a8b88433b...e3ffdea46ce9
That test ran successfully in Travis (https://travis-ci.org/PedroMDuarte/dask/builds/94812034).
Is there perhaps another way to expose the undesired behavior in dill? Or maybe is the preference for cloudpickle based on performance but not functionality?
@eribean Could you elaborate on a case where you would prefer cloudpickle rather than dill?
mrocklin commentedon Dec 4, 2015
This will only happen when using dask interactively.
mrocklin commentedon Dec 4, 2015
This commit from the
distributedproject might be helpful. dask/distributed@6dc1f3fcowlicks commentedon Dec 4, 2015
A user can still change the default serialization with
dask.set_optionsright?mrocklin commentedon Dec 4, 2015
Yes
mrocklin commentedon Jan 5, 2016
This happened. Closing
Fix repr for read_parquet (dask#847)