Initializing Python in Optimized mode from C++
JT
johnc_tan at hotmail.com
Fri Apr 16 20:13:11 EDT 2004
"Fredrik Lundh" <fredrik at pythonware.com> wrote in message
> here's one way to do it:
>
> putenv("PYTHONOPTIMIZE=yes");
> ... initialize interpreter as usual ...
>
> </F>
Thanks for response! I'll try this solution. Does anyone know of any
way to do this directly through the Python C/C++ API, such as by
modifying a variable representing the state, interpreter or compiler,
or by calling a specific method?
More information about the Python-list
mailing list