Simple way of turning -DNDEBUG off in distutils

Michael Hudson mwh at
Fri Jan 23 12:19:20 CET 2004

rick_muller at (Rick Muller) writes:

> Is there a simple way of toggling the -DNDEBUG flag in the distutils
> builds? I just realized that all of my assert statements were being
> skipped because by default the distutils put in -DNDEBUG.

Well, one way is to build against a debug build of Python.  There
might be some other way, but I don't know it...


  The PROPER way to handle HTML postings is to cancel the article,
  then hire a hitman to kill the poster, his wife and kids, and fuck
  his dog and smash his computer into little bits. Anything more is
  just extremism.                                 -- Paul Tomblin, asr

More information about the Python-list mailing list