A
Alex Popescu
Hi all!
Considering that most probably Py3k will keep eval and exec, this will
still be possible (indeed requiring manual loading of the file string), so
I would really appreciate some enlightning comments on this.
Background:
Basically this question is related to my learning process/working project.
In this, I have the need to allow the final user to provide a configuration
like script, but built using my API (and whatever other normal Python code
they want). For this, having execfile was a nice surprise as I was able to
automatically expose the API (so the end user doesn't need to bother about
imports) and also easily execute it in the context I wanted.
many thanks in advance,
../alex
not be present in Py3k. So, I am wondering what will be its replacement?From another thread (and the pointed PEP) I have found that execfile will
Considering that most probably Py3k will keep eval and exec, this will
still be possible (indeed requiring manual loading of the file string), so
I would really appreciate some enlightning comments on this.
Background:
Basically this question is related to my learning process/working project.
In this, I have the need to allow the final user to provide a configuration
like script, but built using my API (and whatever other normal Python code
they want). For this, having execfile was a nice surprise as I was able to
automatically expose the API (so the end user doesn't need to bother about
imports) and also easily execute it in the context I wanted.
many thanks in advance,
../alex