Thanks,
John.
Python has multiple flavors of debug builds. hasattr(sys,
"gettotalrefcount") is only available if Py_REF_DEBUG is enabled. This
should be sufficient to detect the most used debug variant.
Christian
IIRC sysconfig.get_config_var() still depends on parsing the pyconfig.h
file. This won't work on Windows because we are using project and config
settings of VisualStudio.