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@python
components: Documentation
messages: 271142
nosy: cool-RR, docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27604>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to