When using the packaged web2py distribution, is thare a way to use assert statements for development, then switch them off for production use?
Not knowing the details of how .pyo files are used, I tested this by inserting an 'assert 1==2' and compiling that controller file with - O, but the optimised code was apparently not used - the assertion exception still appeared. It seems the only way to use assert statements would be for the full packaged framework to be compiled as optimised code, and the interpreter run with -O, is that correct? -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en