From: "Tim Peters" <tim.one@comcast.net> > [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). > I can (in 2.2) see sys.getobjects() and sys.gettotalrefcount(). I can also guess what gettotalrefcount does, but what does getobjects() do? Is it documented somewhere? Thomas
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