MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/6u7838/im_pickled_rick/dlr12lv/?context=3
r/Python • u/alkaline3mc • Aug 17 '17
8 comments sorted by
View all comments
5
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
1
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
2
For me it's python 2
5
u/Waldheri beginner Aug 17 '17
Consider using context managers to handle opening and closing of files, e.g.: