Skip to content

Instantly share code, notes, and snippets.

@ilyasustun
Created March 20, 2019 13:14
Show Gist options
  • Save ilyasustun/56adce5182d62bfebe243272686faf47 to your computer and use it in GitHub Desktop.
Save ilyasustun/56adce5182d62bfebe243272686faf47 to your computer and use it in GitHub Desktop.
# When reading:
with open(fname, 'rb') as file:
response = pickle.load(file)
# When writing:
with open(fname, 'wb') as file:
pickle.dump(response, file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment