[issue25256] Add sys.is_debug_build() public function to check if Python was compiled in debug mode
STINNER Victor
report at bugs.python.org
Mon Sep 28 15:18:30 CEST 2015
STINNER Victor added the comment:
I wrote this patch while working on new tests for Lib/test/regrtest.py: issue #25220. The Windows scripts PCbuild/rt.bat (and Tools/buildbot/test.bat) requires a "-d" command line option if the Python was compiled in debug mode. The flag is used to choose the name of the Python executable: python.exe or python_d.exe. In my patch, I used:
Py_DEBUG = hasattr(sys, 'getobjects')
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25256>
_______________________________________
More information about the Python-bugs-list
mailing list