Ben Finney wrote:
Lawrence D'Oliveiro writes:
In message <7j8w5tylmw@rapun.sel.cam.ac.uk>, Matthew Vernon wrote:
Is there a more idiomatic way of loading in a configuration file
that's python code ...
Is it really a good idea to have a configuration language that’s Turing
Lawrence D'Oliveiro writes:
> In message <7j8w5tylmw@rapun.sel.cam.ac.uk>, Matthew Vernon wrote:
>
> > Is there a more idiomatic way of loading in a configuration file
> > that's python code ...
>
> Is it really a good idea to have a configuration language that’s Turing-
> complete?
I think
In message <7j8w5tylmw@rapun.sel.cam.ac.uk>, Matthew Vernon wrote:
> Is there a more idiomatic way of loading in a configuration file
> that's python code ...
Is it really a good idea to have a configuration language that’s Turing-
complete?
--
http://mail.python.org/mailman/listinfo/python-
On 7/3/2010 5:15 AM, Matthew Vernon wrote:
Hi,
Is there a more idiomatic way of loading in a configuration file
that's python code than:
_temp=__import__(path,fromlist='cachestrs')
cachestrs=_temp.cachestrs
? I mean, that's pretty ugly...Plain "import" doesn't work in this
case because 'path'
Peter Otten <__pete...@web.de> writes:
> Matthew Vernon wrote:
>
> > Is there a more idiomatic way of loading in a configuration file
> > that's python code than:
> >
> > _temp=__import__(path,fromlist='cachestrs')
> > cachestrs=_temp.cachestrs
> >
> > ? I mean, that's pretty ugly...Plain "impo
Matthew Vernon a écrit :
> Hi,
>
> Is there a more idiomatic way of loading in a configuration file
> that's python code than:
>
> _temp=__import__(path,fromlist='cachestrs')
> cachestrs=_temp.cachestrs
>
> ? I mean, that's pretty ugly...Plain "import" doesn't work in this
> case because 'path'
Matthew Vernon wrote:
> Is there a more idiomatic way of loading in a configuration file
> that's python code than:
>
> _temp=__import__(path,fromlist='cachestrs')
> cachestrs=_temp.cachestrs
>
> ? I mean, that's pretty ugly...Plain "import" doesn't work in this
> case because 'path' is a variab
Hi,
Is there a more idiomatic way of loading in a configuration file
that's python code than:
_temp=__import__(path,fromlist='cachestrs')
cachestrs=_temp.cachestrs
? I mean, that's pretty ugly...Plain "import" doesn't work in this
case because 'path' is a variable defined elsewhere
TIA,
Matthe