This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author SilentGhost
Recipients SilentGhost, arigo
Date 2014-07-27.11:43:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406461397.68.0.610601563914.issue22091@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce your example on 3.4, but for the comparison:

>>> exec(compile("if __debug__: print(42)", "exec", "exec", optimize=1))

>>> exec(compile("if __debug__: print(42)", "exec", "exec", optimize=0))
42

So, it's not as straightforward as one might imagine.
History
Date User Action Args
2014-07-27 11:43:17SilentGhostsetrecipients: + SilentGhost, arigo
2014-07-27 11:43:17SilentGhostsetmessageid: <1406461397.68.0.610601563914.issue22091@psf.upfronthosting.co.za>
2014-07-27 11:43:17SilentGhostlinkissue22091 messages
2014-07-27 11:43:17SilentGhostcreate