Message224119
| Author |
arigo |
| Recipients |
arigo |
| Date |
2014年07月27日.11:32:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1406460720.31.0.52304616259.issue22091@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 ( https://docs.python.org/3.5/library/functions.html?highlight=compile#compile ). It doesn't work this way in practice, though:
python3.5
>>> exec(compile("print(__debug__)", "exec", "exec", optimize=1))
True
I'd recommend to fix either the documentation or the source code. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年07月27日 11:32:00 | arigo | set | recipients:
+ arigo |
| 2014年07月27日 11:32:00 | arigo | set | messageid: <1406460720.31.0.52304616259.issue22091@psf.upfronthosting.co.za> |
| 2014年07月27日 11:32:00 | arigo | link | issue22091 messages |
| 2014年07月27日 11:32:00 | arigo | create |
|