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/025391.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 dependenciesThomas Heller thomas.heller@ion-tof.com
Fri, 14 Jun 2002 17:45:04 +0200
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