twisted.python.modules.OPTIMIZED_MODE is wrong with python -O
[email protected] Fri, 29 Jan 2010 17:16:22 -0000
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from ivank <[email protected]>: `twisted.python.modules.OPTIMIZED_MODE` is correct for `python -OO`, but not `python -O`: It should be looking for `not __debug__`, instead of `__doc__ is None` (which is only correct for the `python -OO` case). Python code in CPython uses `__debug__` to determine whether .pyo files are relevant, so this method might be okay. ---------- Type : defect Component: core Keywords : Priority : normal Nosy : ---------- http://twistedmatrix.com/trac/ticket/4243