3 ms·
This still exists as cloudpickle, I believe? import cloudpickle pkl = cloudpickle.dumps(my_long_fun) # Ship it somewhere new_fun = cloudpickle
by hcrisp 9y ago
This still exists as cloudpickle, I believe?
import cloudpickle
pkl = cloudpickle.dumps(my_long_fun)
# Ship it somewhere
new_fun = cloudpickle.loads(pkl)
new_fun(...)
https://github.com/cloudpipe/cloudpickle https://github.com/cloudpipe/cloudpickle
- xapata 9y agoHoly Moly, thanks for pointing that out!