Re: saving pre-compiled scripts

2005-06-30 Thread Derek van Vliet
I probably should have also mentioned that my application is written in C++ and using the Python/C API. -- http://mail.python.org/mailman/listinfo/python-list

Re: saving pre-compiled scripts

2005-06-30 Thread Derek van Vliet
Another thing which may be important to note re: my constraints is that each script is essentially being run as a function. In fact, every script element I parse in XML gets wrapped in a function def before I send it to Py_CompileString. I then PyEval the result of that function, and then run Py_

saving pre-compiled scripts

2005-06-30 Thread Derek van Vliet
Hi, I'm working on an application that reads python scripts from XML elements and compiles them during my app's startup process using. The application then runs the resulting compiled PyCodeObjects using PyEval_EvalCode as they are needed. Now I'm wondering if its possible to pre-compile the scri