[New-bugs-announce] [issue14445] Providing more fine-grained control over assert statements

Max 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.

----------
messages: 157070
nosy: max
priority: normal
severity: normal
status: open
title: Providing more fine-grained control over assert statements
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14445>
_______________________________________


More information about the New-bugs-announce mailing list