Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

bool.__bases__ #757

Open
1 of 4 tasks
marcus290 opened this issue Jun 20, 2018 · 0 comments
Open
1 of 4 tasks

bool.__bases__ #757

marcus290 opened this issue Jun 20, 2018 · 0 comments

Comments

@marcus290
Copy link
Contributor

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

  • Python Version (list the specific version number)
    Python 3.4.3

  • Operating System and Version (select from the following and list the specific version number; if your OS is not listed, list that as well)

    • OSX
    • Linux
    • Windows
    • Ubuntu
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant