[IPython-dev] Sth. like "python -O" within IPython?

Hans Meine hans_meine at gmx.net
Mon May 8 03:37:49 EDT 2006


When I am using assert's a lot, it certainly makes a difference when I run my 
program with "python -O".  Is it possible to run IPython with optimization?

I would imagine either

* a "global" commandline parameter -O or

* an interactive means to switch on optimization (e.g. -O for %run or 
similar), if that is possible.

(I already used psyco within IPython, which provides a different, but more 
effective way for a speedup, but is not that 100% stable.)

Ciao, /  /
    /  / ANS

More information about the IPython-dev mailing list