Take the 2-minute tour ×  In Python is there any way to make a
class, then make a second version of that class with identical
dat,a but which can be changed, then reverted to be the same as
the data in the original class?  So I would make a class with
the numbers 1 to 5 as the data in it, then make a second class
with the same names for sections (or very similar). Mess around
with the numbers in the second class then with one function then
reset them to be the same as in the first class.  The only
alternative I've found is to make one aggravatingly long class
with too many separate pieces of data in it to be readily
usable.  share|improve this question Thanks for your answers,
teifion gave the answer I was looking for on msn. My question
wasn't clear. Basically though, "Is what you want basically a
class that can reset an instance (object) to a set of default
values? " yes it was. –  leachrode Sep 15 '08 at 16:06 add
comment  6 Answers  up vote 6 down vote accepted  A class is a
template, it allows you to cre