Recommended "new" way for config files
robert.kern at gmail.com
Thu Jan 7 17:38:06 CET 2010
On 2010-01-07 10:10 AM, Peter wrote:
> 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.
"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