Expected Behavior
type(tuple) returns an incorrect value
Current Behavior
When I try this on master, this returns the javascript function with the Tuple constructor. I expect this to return the type object.
Steps to reproduce
For reference, this is what cpython does:
>>> print(type(tuple))
<class 'type'>
>>> print(type(tuple) is type)
True
while batavia does the following
>>> print(type(tuple))
function (args, kwargs) {
if (args.length === 0) {
return new types.Tuple();
}
return new types.Tuple(args[0]);
}
>>> print(type(tuple) is type)
False
Your Environment
Testing on master, revision 71388f5
Expected Behavior
type(tuple)returns an incorrect valueCurrent Behavior
When I try this on master, this returns the javascript function with the
Tupleconstructor. I expect this to return thetypeobject.Steps to reproduce
For reference, this is what cpython does:
while batavia does the following
Your Environment
Testing on master, revision 71388f5
Python Version 3.6.8
Operating System and Version: Ubuntu 18.04