Recommended "new" way for config files
Robert Kern
robert.kern at gmail.com
Thu Jan 7 11:38:06 EST 2010
On 2010-01-07 10:10 AM, Peter wrote:
> Hi
> There seems to be several strategies to enhance the old ini-style config
> files with real python code, for example:
>
> 1) the documentation tool sphinx uses a python file conf.py that is
> exefile(d) , but execfile is suppressed in Python 3
Only because it is redundant, not because it is a discouraged approach. You can
still read the file and exec() the resulting string.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list