[New-bugs-announce] [issue14445] Providing more fine-grained control over assert statements
report at bugs.python.org
Thu Mar 29 19:07:11 CEST 2012
New submission from Max <maxmoroz at gmail.com>:
Currently -O optimizer flag disables assert statements.
I want to ask that more fine-grained control is offered to users over the assert statements. In many cases, it would be nice to have the option of keeping asserts in release code, while still performing optimizations (if any are offered in the future). It can be achieved by removing the "disable assertions" feature of the -O flag, and instead adding a new flag that does nothing but disables asserts.
title: Providing more fine-grained control over assert statements
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce