[issue24468] Expose C level compiler flag constants to Python code

Yury Selivanov report at bugs.python.org
Sat Jun 20 22:37:25 CEST 2015


Yury Selivanov added the comment:

Larry, Nick,

Attached patch exposes CO* constants in the '_opcode' module.

There is one slight complication though: importing '_opcode' in 'types' (required for issue24400) breaks Python compilation, as 'types' module is used by many tools at the point where '_opcode' module isn't yet compiled.

We should either make '_opcode' compiled earlier or move constants to the 'sys' module.

----------
Added file: http://bugs.python.org/file39752/opcode.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24468>
_______________________________________


More information about the Python-bugs-list mailing list