Message326955
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
``` |
|
Date |
User |
Action |
Args |
2018-10-03 09:52:39 | thautwarm | set | recipients:
+ thautwarm, steven.daprano, vtheno athena |
2018-10-03 09:52:39 | thautwarm | set | messageid: <1538560359.0.0.545547206417.issue34880@psf.upfronthosting.co.za> |
2018-10-03 09:52:38 | thautwarm | link | issue34880 messages |
2018-10-03 09:52:38 | thautwarm | create | |
|