A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025389.html below:

[Python-Dev] addressing distutils inability to track file dependencies

[Python-Dev] addressing distutils inability to track file dependencies [Python-Dev] addressing distutils inability to track file dependenciesTim Peters tim.one@comcast.net
Fri, 14 Jun 2002 11:18:22 -0400
[Thomas Heller]
> ...
> I don't know if it even is possible (in Python code) to determine
> whether the debug or the release exe is currently running.

FYI, the sys module exposes some debugging tools only in the debug build.
So, e.g.,

def is_debug_build():
    import sys
    return hasattr(sys, "getobjects")

returns the right answer (and, I believe, under all versions of Python).





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4