Created
December 5, 2019 23:51
-
-
Save Mlawrence95/fb81573a98f4d60383d0e419bcfd1a71 to your computer and use it in GitHub Desktop.
Old pickle files can be a pain to work with. This can make SliceTypes and ObjectType exceptions go away in certain circumstances.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
import dill | |
dill._dill._reverse_typemap['SliceType'] = slice | |
dill._dill._reverse_typemap['ObjectType'] = object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment