On Sat, Mar 7, 2015 at 6:09 AM, Benjamin Peterson <benja...@python.org> wrote: > I think it would be preferable deprecate -O and -OO and replace them > with flags like --no-docstrings or --no-asserts. Ideally, "optimization" > levels shouldn't change program semantics.
Plenty of C compilers have optimization levels that can change behaviour (replacing division with mult-by-reciprocal and such), so I don't see any reason for Python to object. The removal of docstrings will be a problem to only a handful of programs (eg [1]) which use them for more than introspection. And the removal of assert shouldn't be a semantic change to a well-written program. [1] https://github.com/Rosuav/LetMeKnow/blob/master/letmeknow.py ChrisA _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com