We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isinstance(arr, list)/isinstance(arr, tuple) doesn't work properly on JS arrays (one of them should be true.
isinstance(arr, list)
isinstance(arr, tuple)
true
Maybe will be fixed by the PR I made a few time back.
The text was updated successfully, but these errors were encountered:
I don't agree that either test should return True, a Javascript Array is not the same type as a Python list or tuple
True
from browser import window t = window.js_list print(hasattr(t, 'push')) # True t = [1] print(hasattr(t, 'push')) # False
Sorry, something went wrong.
Shouldn't they convert to one in jsobj2pyobj ?
jsobj2pyobj
Or to be put in a wrapper JSList inheriting from List, or JSTuple inheriting from Tuple, depending on what Object.isFrozen(jsarray) returns ?
JSList
List
JSTuple
Tuple
Object.isFrozen(jsarray)
No branches or pull requests
isinstance(arr, list)
/isinstance(arr, tuple)
doesn't work properly on JS arrays (one of them should betrue
.Maybe will be fixed by the PR I made a few time back.
The text was updated successfully, but these errors were encountered: