Class inheritance errors out
When importing the datetime module, which went something like this:
class date:
...
class datetime(date):
...
the second line errors out with something like date not found.
Attempting to get a small reproducer gives a different error:
class date:
pass
class d2(date):
pass
print(d2)
gives the error TypeError: Cannot read property 'prototype' of undefined. Different, but also needs to be addressed.
This is partially addressed, in that very simple super() usages were added in https://github.com/pybee/batavia/pull/268
Hi @swenson , I would like to give it a try. I am a first time contributor but eager to learn and contribute. How can I help?
@son-vyas This is a fairly deep issue to address, if it hasn't been already. It would probably be best to do something like:
- Check that the reproducer above still doesn't work.
- Look at #268
- Check the current state of how
super()works as well as how our type inheritance works - Figure out what we're doing differently than CPython
- Write code to make us do something a little closer to what CPython does. :)
Sorry if that is a bit vague.