Skip to content

Instantly share code, notes, and snippets.

@wiccy46
Created April 3, 2020 09:17
Show Gist options
  • Save wiccy46/bbc03a83347bef73647534a2fc30d7aa to your computer and use it in GitHub Desktop.
Save wiccy46/bbc03a83347bef73647534a2fc30d7aa to your computer and use it in GitHub Desktop.
[pickle] what is pickle for #python #markdown
  1. saving a program's state data to disk so that it can carry on where it left off when restarted (persistence)

  2. sending python data over a TCP connection in a multi-core or distributed system (marshalling)

  3. storing python objects in a database

  4. converting an arbitrary python object to a string so that it can be used as a dictionary key (e.g. for caching & memoization).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment