Opened 5 years ago

#4243 defect new

twisted.python.modules.OPTIMIZED_MODE is wrong with python -O

Reported by: ivank Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description

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.

Change History (1)

comment:1 Changed 3 years ago by <automation>

  • Owner glyph deleted
Note: See TracTickets for help on using tickets.