[Tutor] embedding lists in configuration files

William O'Higgins Witteman hmm at woolgathering.cx
Thu Oct 12 20:07:03 CEST 2006


I am looking for a way to use a plain text configuration file in a
Python program instead of hard-coded values.  The configuration data
currently is in the form of a couple of lists and some triple-quoted
strings.

I was looking at the ConfigParser module, but I cannot see how to use
this format to represent lists or triple-quoted strings.  Are there any
other suggestions?  Thanks.
-- 

yours,

William


More information about the Tutor mailing list