Best way to add attributes to shelved objects?

Jonathon McKitrick jcm at FreeBSD-uk.eu.org
Fri Apr 23 15:39:51 EDT 2004


I'm working on an app that persists a few classes with shelve.  But if I
load older saved classes, I get an exception in code that uses the new
attributes, of course.

What is the best way to load these older classes, check for the new
attributes, and add them so they will work with the new code?

jm
-- 
My other computer is your Windows box.




More information about the Python-list mailing list