17
miej
2y

almost ran into a potentially big problem.

with python's `pickle` library, nonetheless.

turns out all I had to do to get around it was change `import pickle` to `import dill as pickle`.

i love python sometimes.

Comments
  • 0
    @irene pickle/dill can serialise python objects; pickle can only do basic types - str, int, float, list, dict etc and can only save to a file; dill can serialise all objects and works also in a network byte stream.
  • 3
    Aaaah, this may work, but there's going to be a dev who will hate you for this. (probably you, 3 years later)
Add Comment