What does the -O flag do?

Sard Sardaukary at gmail.com
Tue Jan 9 17:19:34 EST 2007


http://rgruet.free.fr/PQR25/PQR2.5.html says

"Optimize generated bytecode (also PYTHONOPTIMIZE=x). Asserts are
suppressed."

Is removing asserts all it does, where can I find more details?  I'm
guessing it's not very useful as I hardly ever see it mentioned.




More information about the Python-list mailing list