pickling or xml or other?
Diez B. Roggisch
deets at nospam.web.de
Tue Aug 15 08:19:54 EDT 2006
placid wrote:
> Hi all,
>
> I have an application were i want the user to "configure" some settings
> which are variables within different classes.
>
> My question is should i just pickle out these variables to a file in
> some particular order then read it back. Or use xml to save the config
> values ? Which one scales better if settings increase?
>
> Other sugestions?
ConfigParser. And "scaling" of something that by definition is supposed to
be written by humans isn't a matter here. What matters is that a
config-file can be edited on the commandline using vi (or the editor of
your choice) - a pickle can't. So I'd certainly advise against the
pickling.
Diez
More information about the Python-list
mailing list