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.

Author thautwarm
Recipients steven.daprano, thautwarm, vtheno athena
Date 2018-10-03.09:52:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538560359.0.0.545547206417.issue34880@psf.upfronthosting.co.za>
In-reply-to
Content
If we could generate `LOAD_CONST` instructions for `assert` statements, any prospective dangers could be avoided.


```
from dis import dis
@dis
def f():
    assert x
    
  3           0 LOAD_GLOBAL              0 (x)
              2 POP_JUMP_IF_TRUE         8
              4 LOAD_GLOBAL              1 (AssertionError)
              6 RAISE_VARARGS            1
        >>    8 LOAD_CONST               0 (None)
             10 RETURN_VALUE
```
History
Date User Action Args
2018-10-03 09:52:39thautwarmsetrecipients: + thautwarm, steven.daprano, vtheno athena
2018-10-03 09:52:39thautwarmsetmessageid: <1538560359.0.0.545547206417.issue34880@psf.upfronthosting.co.za>
2018-10-03 09:52:38thautwarmlinkissue34880 messages
2018-10-03 09:52:38thautwarmcreate