Open mirabilos opened 1 year ago
oof. I'll add that next release. Please tell me it doesn't also strip annotations
-O strips asserts and sets __debug__
to False
-OO does that and also strips docstrings
https://docs.python.org/3/using/cmdline.html#cmdoption-O
(line numbers match 1.5.1-1 in Debian bullseye)
This is because
python3 -OO
strips away docstrings. A test for the presence of__doc__
should probably suffice.