Is there a way to save the state of a class??

EdwardT edwardt at trillium.com
Fri Apr 20 13:23:20 EDT 2001


Hello, I current have a script that do certain processing on files, and
requires user to enter certain info such as:
1. inputfile name
2. output file name
3. whether it would like process all files recusively or just one (stored as
a Int instance in class, value got from CheckButton widget in runtime )
4. a string that supplies the protocol stack it is building. (stored as a
string instance in class)

Instead of writing some code to save all these some sort of  text file; and
re-read the next time ithe script got invoked.  Does python offer the option
to save the state of the whole script, as some kind of persistence objects?

I am using python1.5.2.

Thanks





More information about the Python-list mailing list