Open dmoisset opened 5 years ago
I did a quick check, it seems to be related to https://github.com/beeware/batavia/blob/eb8ee7a/batavia/builtins/tuple.js#L5 : The tuple.__class__
is set, while other similar functions set the __call__
attribute instead. At least changing that seems to fix the problem
Expected Behavior
type(tuple)
returns an incorrect valueCurrent Behavior
When I try this on master, this returns the javascript function with the
Tuple
constructor. I expect this to return thetype
object.Steps to reproduce
For reference, this is what cpython does:
while batavia does the following
Your Environment
Testing on master, revision 71388f56778
Python Version 3.6.8
Operating System and Version: Ubuntu 18.04