You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please provide a very short program that shows the problem? It
sounds like it could be a bug in the RapydScript-NG Python-to-JavaScript
transpiler.
Bruce
Thanks. I found and fixed a bug in my code, so that if you replace "super()" with "Ball" the program works. As for the use of super(), that does seem to be a RapydScript-NG issue, which I'll report.
So RapydScript-NG isn't going to change. There are limits to how close RapydScript-NG (and therefore GlowScript) can go in turning a Python program into a JavaScript program.
Activity
BruceSherwood commentedon May 12, 2020
hmathers commentedon May 12, 2020
BruceSherwood commentedon May 12, 2020
Thanks. I found and fixed a bug in my code, so that if you replace "super()" with "Ball" the program works. As for the use of super(), that does seem to be a RapydScript-NG issue, which I'll report.
BruceSherwood commentedon May 13, 2020
Actually, to be compatible with true Python, the statement should be Ball.init(self).
As for RapydScript-NG, the response to my question was this:
"super is not supported in RS as it is a keyword in javascript with different semantics. See
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super"
So RapydScript-NG isn't going to change. There are limits to how close RapydScript-NG (and therefore GlowScript) can go in turning a Python program into a JavaScript program.
deps: urllib3 2.8.0, Werkzeug 3.1.9, certifi 2026.10.23 (#216)