Message326942
When I was involved in the YaPyPy project, I found a problem, An source "assert 0" will compile to an bytecode, On that bytecode sequence, it always raise a "AssertionError" from global, when we rewrite global "AssertionError" like here:
```
class AssertionError(Exception):
def __init__(self,msg):
self.msg = f"User AssertionError: {msg}"
# other code
```
so, "assert" is meta-programming? |
|
Date |
User |
Action |
Args |
2018-10-03 06:58:30 | vtheno athena | set | recipients:
+ vtheno athena |
2018-10-03 06:58:30 | vtheno athena | set | messageid: <1538549910.96.0.545547206417.issue34880@psf.upfronthosting.co.za> |
2018-10-03 06:58:30 | vtheno athena | link | issue34880 messages |
2018-10-03 06:58:30 | vtheno athena | create | |
|