A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/063148.html below:

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

Is there a way to save the state of a class?? 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

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