Python persistence

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. ——-

More in the discussion (powered by webmentions)

  • (no mentions, yet.)