How to find out if the interpreter is a debug build?

llothar llothar at web.de
Sat Sep 1 06:44:10 EDT 2007


On 1 Sep., 13:25, "Martin v. Löwis" <mar... at v.loewis.de> wrote:

> If you want it cross-platform, you can check whether sys.getobjects
> is available. That, of course, is also unsafe because there isn't
> a single "debug build" on Unix, but instead, several debugging
> features can be enabled and disabled separately, so you would have
> to specify first what precisely a debug build is.

I thought that the answer is as complicated as this. At the moment it
would be nice and enough if i only can find out if my binary
extension can be loaded into an interpreter or if this requires a
new extension build.

It is a huge problem and weakness of python if this is impossible
with
debug builds.  And if you answer that this is up to the user, i have
to
say, no it isn't: At least if you are like me and are working on an
IDE with a debugger component.





More information about the Python-list mailing list