cloudpipe / cloudpipe/cloudpickle
Is it possible to re-generate the source of pickled objects including encapsulated globals?
Open
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 195
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 1
Description
I know that I can pickle a dictionary or list of functions, then unpickle them and use the `inspect.getsource` to print the source of each of them, but that does not include the source of any globals that are referenced inside those functions. I'd like to be able to regenerate the source of all pickled objects to create runnable source. I have to think the globals are stored somewhere that can be inspected, but I wasn't able to find them.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.