__debug__ is always True

Issue #30 new
Anonymous created an issue

In compiled executable debug is always True, even if build_exe setting 'optimize' is 1 or 2 or setup build script was launched with Python interpreter in optimized mode (python -O)

Python 3.3

(this issue is correct, the one before this when i say it is always False is wrong - mixed up, sorry)

Comments (1)

  1. Jonathan Hartley

    This issue is serious when the executable uses modules such as pyglet or pyopengl, which perform very expensive safety checks when __debug__ is True. (e.g. reducing framerate by an order of magnitude)

  2. Log in to comment