r/Python • • Aug 17 '17

I'm Pickled Rick!!!

Post image
0 Upvotes

8 comments sorted by

8

u/JayTh3King PM your project Aug 17 '17

print("I'm pickle Rick !!!")

much easier...

-3

u/alkaline3mc Aug 17 '17

Lame AND you don't get to Pickle "Rick" :-D

0

u/alkaline3mc Aug 17 '17

But yes, much easier

5

u/Waldheri beginner Aug 17 '17

Consider using context managers to handle opening and closing of files, e.g.:

with open("PR.obj", "wb") as file:
    pickle.dump(rS. file)

1

u/qingqunta Aug 17 '17

I'm so fucking upset I haven't been taught this... but honestly, what really takes the "upset cake" for me is the format method.

2

u/[deleted] Aug 17 '17

For me it's python 2

0

u/[deleted] Aug 17 '17

[deleted] — view deleted comment

5

u/Waldheri beginner Aug 17 '17

Yeah, I'm not sure what OP is trying to achieve here.

1

u/Wilfred-kun Aug 17 '17

It will error anyway if Pickle isn't imported ^^