Author vtheno athena
Recipients vtheno athena
Date 2018-10-03.06:58:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538549910.96.0.545547206417.issue34880@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-10-03 06:58:30vtheno athenasetrecipients: + vtheno athena
2018-10-03 06:58:30vtheno athenasetmessageid: <1538549910.96.0.545547206417.issue34880@psf.upfronthosting.co.za>
2018-10-03 06:58:30vtheno athenalinkissue34880 messages
2018-10-03 06:58:30vtheno athenacreate