homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 2022年04月11日 14:57 by admin. 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
2022年04月11日 14:57:28adminsetgithub: 58650
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

AltStyle によって変換されたページ (->オリジナル) /