I agree with Steven; JSON is probably one of the most popular formats for saving structured data externally, and it's probably the lightweight approach to use in this situation.
By the way, it looks like you're already dealing with a certain file format in your program. In fact, it looks like a simple interpreter, if I understand the program's design. Nice! _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor