IBM developerWorks have a new article about persisting objects in Python. Vellum, the blogging system currently under development by Sarabian and I, uses pickling of objects extensively to persist state, so I read this with interest, particularly the __setstate__ bits (which explain ways to handle the problem you get when you change a class definition and then try and unpickle instances of that class that were pickled under the old definition). I shall certainly be needing those as the Vellum objects’ definitions change over time. ——-
Python persistence
I'm currently available for hire, to help you plan, architect, and build new systems, and for technical writing
and articles. You can take a look at some projects I've worked on and
some of my writing. If you'd like to talk about your upcoming project,
do get in touch.