Oct-03-2017, 07:06 PM
You could use pickle to save the class, but I find it better to write specific save and load methods. With classes you can use getattr and setattr to put the saving and loading into loops. If you don't want go full on OOP yet, dictionaries are a good stepping stone. They can also be saved/loaded with a loop pretty easily.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures