Open PhilipD8 opened 3 weeks ago
This code block
from cmu_cpcs_utils import testFunction @testFunction def test(): assert test()
when run in CPython 3.11, prints SyntaxError: invalid syntax
SyntaxError: invalid syntax
and when run on master Brython, prints Exception: <Javascript TypeError>: this.tree[0].ast is not a function
Exception: <Javascript TypeError>: this.tree[0].ast is not a function
Thanks again for taking a look! :)
Sorry, I can't reproduce the issue, the error message is correct with Brython 3.13.0. Which version are you using ?
This code block
when run in CPython 3.11, prints
SyntaxError: invalid syntax
and when run on master Brython, prints
Exception: <Javascript TypeError>: this.tree[0].ast is not a function
Thanks again for taking a look! :)