I have seen that -OO is used to discard docstrings:
$ man python
-O Turn on basic optimizations. This changes the filename extension
for compiled (bytecode) files from .pyc to .pyo. Given twice,
causes docstrings to be discarded.
-OO Discard docstrings in addition to the -O optimizations.
Why should one ever want to discard docstrings? What is the advantage?
Does -OO
give a speed advantage for some code? (Why?)