On 19/04/2021 22:01, Antoine Pitrou wrote:
Almost nobody uses -O. Optimizations that are enabled only in -O are useless.
Data point: I use -O.¹ Not frequently, not usually, but I have a few large² programs that I add features to from time to time and will doubtless continue to do so. I need their __debug__-enabled diagnostics and asserts during development and testing. When I run them "for real", I use -O. Of course, since I never use annotations, type hints or whatever, this may not be very relevant to this thread. Best wishes Rob Cliffe
¹ Which makes me "almost nobody" - well, I knew that already. 😁 ² Your idea of "large" may not be the same as mine - I'm talking a few thousand lines.