[issue27604] More details about `-O` flag

Ram Rachum report at bugs.python.org
Sun Jul 24 05:46:21 EDT 2016


New submission from Ram Rachum:

I wanted to ensure that the `-O` flag doesn't really do anything more than remove assert statement and make `__debug__` equal `False`. But the documentation for `-O` doesn't cover it: 

https://docs.python.org/3/using/cmdline.html#cmdoption-O

https://docs.python.org/3/using/cmdline.html#envvar-PYTHONOPTIMIZE

It just says "basic optimizations". Are there any other optimizations except the two I mentioned?

----------
assignee: docs at python
components: Documentation
messages: 271142
nosy: cool-RR, docs at python
priority: normal
severity: normal
status: open
title: More details about `-O` flag
type: enhancement
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27604>
_______________________________________


More information about the Python-bugs-list mailing list