I got a new one that's kinda wild: Is it possible/...
# plugins
b
I got a new one that's kinda wild: Is it possible/desireable to infer dependencies for pickle resources? We have them, and loading them is giving an import error. Conceivably they could have dependencies on the modules they use. We'd just need a parser... 🤔
f
What is a
.pkl
file?
b
Ohh I thought that was a standard convention, but the docs dont' use it. Pickle files: https://docs.python.org/3/library/pickle.html
Unpickler.find_class()
is called whenever a global (i.e., a class or a function) is requested
🤔 We might be able to (ab)use
Unpickler
Oh this is nasty. We could generate the string rep of the pickle (or loop through the opcodes) using
pickletools
. Then just try and match strings to modules a la
[python.infer].string-imports