Skip to content

Instantly share code, notes, and snippets.

@neotheicebird
Created April 24, 2016 19:03
Show Gist options
  • Save neotheicebird/b35813a83a3eab147995c9cf8b513109 to your computer and use it in GitHub Desktop.
Save neotheicebird/b35813a83a3eab147995c9cf8b513109 to your computer and use it in GitHub Desktop.
import pickle # pickle is py2 equivalent of cPickle
# if a Py2 cPickle object shows UnicodeError in Py3
with open(picklefile, 'rb') as f
d = pickle.load(f, encoding='latin1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment