classification
Title: Providing more fine-grained control over assert statements
Type: enhancement Stage: resolved
Components: Versions: Python 3.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, max, pitrou
Priority: normal Keywords:

Created on 2012-03-29 17:07 by max, last changed 2021-06-16 11:13 by iritkatriel. This issue is now closed.

Messages (3)
msg157070 - (view) Author: Max (max) * Date: 2012-03-29 17:07
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.
msg157075 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-03-29 17:21
This should be discussed on python-dev (http://mail.python.org/mailman/listinfo/python-dev) or python-ideas (http://mail.python.org/mailman/listinfo/python-ideas).
msg395917 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-06-16 11:13
I am closing this because there was no followup for over 9 years. If you are still interested in pursuing this, please raise it for discussion on python-ideas and open a new issue once there is agreement on how to proceed.
History
Date User Action Args
2021-06-16 11:13:01iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg395917

resolution: out of date
stage: resolved
2012-03-29 17:21:41pitrousetnosy: + pitrou
messages: + msg157075
2012-03-29 17:07:11maxcreate