beeware / batavia

A JavaScript implementation of the Python virtual machine.
http://pybee.org/batavia
Other
1.39k stars 424 forks source link

bool.__bases__ #757

Open marcus290 opened 6 years ago

marcus290 commented 6 years ago

Expected Behavior

In Python, the native bool class inherits from int, so

bool.__bases__

returns:

(<class 'int'>,)

Current Behavior

The same code in Batavia returns an Attribute Error:

AttributeError: 'Native object' object has no attribute '__bases__'

I came across this while implementing issubclass() builtin #740

Steps to reproduce

  1. enter bool.__bases__ into the Batavia sandbox

Your Environment