[Python-ideas] start, test, init

Ethan Furman ethan at stoneleaf.us
Mon Dec 2 06:28:07 CET 2013


On 12/01/2013 04:55 PM, Ron Adam wrote:
>
> Isn't __debug__ set at Python's compile time, not module compile time?

No.  __debug__ is true when Python [1] is started normally, and False when started with -O or -OO.

--
~Ethan~

[1] Cpython to be specific; and there may be other flags that affect __debug__.


More information about the Python-ideas mailing list