On 06:28 am, techtonik at gmail.com wrote: >On Wed, Nov 3, 2010 at 9:08 PM, Glyph Lefkowitz ><glyph at twistedmatrix.com> wrote: >> >>This is the strongest reason why I recommend to everyone I know that >>they >>not use pickle for storage they'd like to keep working after upgrades >>[not >>just of stdlib, but other 3rd party software or their own software]. >>:) >> >>+1. >>Twisted actually tried to preserve pickle compatibility in the bad old >>days, >>but it was impossible. Pickles should never really be saved to disk >>unless >>they contain nothing but lists, ints, strings, and dicts. > >But what is alternative in stdlib? >Don't you think that Python doesn't provide any? Persistence is a very hard problem. Lots and lots of trade-offs need to be made, and you generally want to tailor those trade-offs to the particular application at hand. This probably means that the stdlib isn't a suitable place to try to solve the problem. Look outside the stdlib and you'll find an extremely vibrant and diverse collection of software which is aimed at solving this problem, though. Jean-Paul
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4