2015-10-02 13:16 GMT+02:00 Nir Soffer <nir...@gmail.com>: > Whats wrong with: > >>>> sysconfig.get_config_var('Py_DEBUG') > 0
Again, refer to my first message "On the Internet, I found various recipes to check if Python is compiled is debug mode. Sadly, some of them are not portable." I don't think that sysconfig.get_config_var('Py_DEBUG') will work on other Python implementations. On Windows, there is no such file like "Makefile" used to fill syscofig.get_config_vars() :-( sysconfig._init_non_posix() only fills a few variables like BINDIR or INCLUDEPY, but not Py_DEBUG. Victor _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com