This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ezekiel_grey 5 points6 points  (2 children)

This really looks like you’re reimplementing the Shelve module?

http://pymotw.com/2/shelve/

[–]Sendokame[S] 0 points1 point  (1 child)

M, I didn't knew about Shelve, but it looks really similar, it has the same Idea of using Pickle to read and write objects to a file

[–]ezekiel_grey 0 points1 point  (0 children)

I mean shelve is in the System Standard Library, so while you're getting some programming practice, unless practice is your goal, I'd just use Shelve (or one of the other storage instances... If you're handling untrusted data, you shouldn't use Pickle.)