On 5/8/2018 3:37 AM, Eloi Gaudry wrote:
On Mon, 2018-05-07 at 16:56 +0000, Brett Cannon wrote:

My question is how is this different to running with -O which leaves
the assert statement out of the bytecode and so you avoid any run-
time cost of the statement entirely?

Not so much different, except that:
- the switch won't need to be on the command line

So, is the switch set in code? If so, what would that look like?

Eric
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to