Inheritance not supported?

1 view
Skip to first unread message

Daniel Sinkovits

unread,
Dec 2, 2025, 4:56:43 PM (3 days ago) Dec 2
to glowscri...@googlegroups.com
Hello,

It appears that, while classes are supported in Web VPython, inheritance is not.

A simple program that attempts inheritance fails with the error:
Error: super is a reserved word at ...

This also fails with the same error if the parent class is a user-created one rather than a built-in one.  

Daniel 

Steve Spicklemire

unread,
Dec 3, 2025, 4:09:49 AM (2 days ago) Dec 3
to 'Jim D.' via Glowscript Users, Steve Spicklemire
Hi Daniel,

My guess is that this is a limitation of the RapydScript, the python->javascript translation system used by WebVPython.

There is an experimental version of WebVPython that uses a WASM implementation of WebVPython. It’s not ready for general release quite yet, but I hope to offer it as an option early next year. I’ll contact you off-list if you want early access to test your code.

-steve
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAE3a02T2KNi0hbVnQc60uXbZSP4e0-L9xKyew8VX9eKWtuuEaw%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages