JT wrote: > When embedding Python in C++, is there anyway to initialize the > interpreter so that it runs in optimized mode, equivalent to > specifying the -O flag when running the interpreter from the command > line? here's one way to do it: putenv("PYTHONOPTIMIZE=yes"); ... initialize interpreter as usual ... </F>