From prideofelites at gmail.com Tue Apr 2 09:51:31 2019 From: prideofelites at gmail.com (Ritesh Saini) Date: Tue, 2 Apr 2019 19:21:31 +0530 Subject: [Mochi] No exception handling Message-ID: There are exceptions: >>> 1 / 0 Traceback (most recent call last): ... site-packages/mochi/core/main.py", line 120, in interact eval_tokens(tokens) .../site-packages/mochi/core/builtins.py", line 1008, in eval_tokens exec(code, global_env) File "", line 1, in ZeroDivisionError: division by zero But there seems to be no way to catch them: >>> try: ... 1 / 0 ... except: ... print('got it') ... ParsingError: file= lineno=3 colno=7 How would an exception in Mochi be handled? Regards https://www.digitalkube.com/elegant-themes-coupon/ -------------- next part -------------- An HTML attachment was scrubbed... URL: