> Starting with Python 2.7 and 3.2 you can do this:
> 
>>>> sysconfig.get_config_var("Py_DEBUG")
> 1
> 
> (returns None if the var doesn't exist)

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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to