-
-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
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
getattr(Array, 'from') raises AttributeError #3921
Labels
Comments
Thanks for the report @MarcSkovMadsen. We changed how we handle reserved keywords in #3617, so you need to append the underscore now: from js import Array
Array.from_
getattr(Array, "from_") We need to update the document. |
Huh I wonder why we don't make |
Indeed, it is interesting that it is a regression. |
We should probably release an 0.23.3 with a fix for this. |
hoodmane
added a commit
to hoodmane/pyodide
that referenced
this issue
Jun 12, 2023
…utes on js objects and update faq Resolves pyodide#3921
hoodmane
added a commit
to hoodmane/pyodide
that referenced
this issue
Jun 12, 2023
…utes on js objects and update faq Resolves pyodide#3921
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
The example in How can I access JavaScript objects/attributes in Python if their names are Python keywords? raises
AttributeError: from
To Reproduce
Expected behavior
No exception raised and I can use the
fromFunc
.Environment
Additional context
I'm trying to use PIXI.js and would like to be able to use its
PIXI.Sprite.from
method.Workaround
Downgrade to 0.21.2 (random choice). Then it works
0.22.1 is the latest version of Pyodide I can get this working with.
The text was updated successfully, but these errors were encountered: