On Wed, May 13, 2020 at 05:28:20PM -0000, Chris . wrote: > That's what I did on my first day :D Setting up my dev environment for > the first time, the 'run this to make sure it is set up' script was > failing. After walking the debugger through several 'this should not > happen' oddities, the developer that was helping me eventually figured > out I was running with '-O'. Ended my first day with "No-one uses -O, > don't use it."
I use -O and sometimes it even makes a difference to performance. I know that people using embedded Python sometimes like to use not just -O but -OO to remove docstrings because every byte matters. "No one uses -O" is, I'm afraid, one of those myths popular among Python users, like "No one uses anything but CPython" and "Everyone uses an IDE". I feel your pain -- I used to work with an otherwise really good Python coder who was strict about following every best practice in the book *except* he insisted on using assert for all his error checking. Very frustrating! -- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/XBYPJFSGIIZUKAV5ZTRBUVQFMGFTXPBI/ Code of Conduct: http://python.org/psf/codeofconduct/