Tyler Wade <[email protected]> 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. ---------- nosy: +waedt ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1188> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
