[pypy-issue] [issue1188] Support -OO
tracker at bugs.pypy.org
Fri Apr 26 12:42:52 CEST 2013
Tyler Wade <wayedt at gmail.com> added the comment:
I've attached a patch for -OO support. A few comments/concerns:
- I wasn't sure what the best way to figure out when -OO was set. I ended up
using sys.flags, which has the side effect that the first few modules imported
won't have their docstrings stripped.
- The way I changed the sys.flags value in pyinteractive.py is kind of dumb. Is
there/what is a better way to do this?
- Docstrings won't be removed from code run via eval or exec. I don't know how
desirable that is, but I can add it if need be.
PyPy bug tracker <tracker at bugs.pypy.org>
More information about the pypy-issue