Skip to content

Instantly share code, notes, and snippets.

@taddeimania
Created August 14, 2017 01:39
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taddeimania/7e5ebe70c756d4f63795e7c2df9bb8fc to your computer and use it in GitHub Desktop.
Save taddeimania/7e5ebe70c756d4f63795e7c2df9bb8fc to your computer and use it in GitHub Desktop.
I'M PYTHON PICKLE RICK!!!!
import pickle
class Rick:
def __str__(self):
return "i'm pickle rick!!!!"
pickle_rick = pickle.dumps(Rick())
regular_rick = pickle.loads(pickle_rick)
print(regular_rick)
# >>> i'm pickle rick!!!!
@volt-k
Copy link

volt-k commented Sep 28, 2017

I just learned about the pickle package in Python and was wondering if anyone made Rick reference already. I googled "import pickle rick" and found this :)
👍

@crirex
Copy link

crirex commented Sep 19, 2018

I just did the same thing one year after :))

@theBeardyDwarf
Copy link

again 1 year later ✌️

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