Created
January 18, 2018 01:42
-
-
Save solidpple/3fb2311d4683186cf2fe1ac5ed26d7a3 to your computer and use it in GitHub Desktop.
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 | |
a = {'hello': 'world'} | |
with open('filename.pickle', 'wb') as handle: | |
pickle.dump(a, handle, protocol=pickle.HIGHEST_PROTOCOL) | |
with open('filename.pickle', 'rb') as handle: | |
b = pickle.load(handle) | |
print a == b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment