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 arigo
Recipients arigo
Date 2014-07-27.11:32:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The documentation of the built-in compile() function is not 100% clear but I think it says that giving the "optimize=1" argument turns "__debug__" to false in the compiled code ( ).  It doesn't work this way in practice, though:

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

I'd recommend to fix either the documentation or the source code.
Date User Action Args
2014-07-27 11:32:00arigosetrecipients: + arigo
2014-07-27 11:32:00arigosetmessageid: <>
2014-07-27 11:32:00arigolinkissue22091 messages
2014-07-27 11:32:00arigocreate