[Python-Dev] Issue #25256: Add sys.debug_build? (original) (raw)
Maciej Fijalkowski fijall at gmail.com
Fri Oct 2 15:17:26 CEST 2015
- Previous message (by thread): [Python-Dev] Issue #25256: Add sys.debug_build?
- Next message (by thread): [Python-Dev] Issue #25256: Add sys.debug_build?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Speaking of other python implementations - why would you even care? (the pypy debug build has very different properties and does very different stuff for example). I would be very happy to have this clearly marked as implementation-dependent and that's why it would be cool to not be in sys (there are already 5 symbols there for this reason, so hasattr totalrefcount is cool enough)
On Fri, Oct 2, 2015 at 2:19 PM, Victor Stinner <victor.stinner at gmail.com> wrote:
2015-10-02 13:16 GMT+02:00 Nir Soffer <nirsof at gmail.com>:
Whats wrong with:
sysconfig.getconfigvar('PyDEBUG') 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.getconfigvar('PyDEBUG') will work on other Python implementations. On Windows, there is no such file like "Makefile" used to fill syscofig.getconfigvars() :-( sysconfig.initnonposix() only fills a few variables like BINDIR or INCLUDEPY, but not PyDEBUG. Victor
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/fijall%40gmail.com
- Previous message (by thread): [Python-Dev] Issue #25256: Add sys.debug_build?
- Next message (by thread): [Python-Dev] Issue #25256: Add sys.debug_build?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]