[Python-3000] No (C) optimization flag

Jim Jewett jimjjewett at gmail.com
Fri Aug 10 16:33:21 CEST 2007


On 8/10/07, Christian Heimes <lists at cheimes.de> wrote:

> I like to propose a --disable-optimization (-N for no optimization) flag
> for Python that disables the usage of optimized implementation. The
> status of the flag can be set by either a command line argument or a C
> function call before Py_Initialize() and it can be queried by
> sys.getoptimization(). It's not possible to chance the flag during
> runtime. That should make the code simple and straight forward.

So you want it global and not per-module?

It strikes me as something that ought to be controllable at a
finer-grained level, if only to ensure that regression tests continue
to also test the python version automatically.

-jJ


More information about the Python-3000 mailing list