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

Thomas 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?