-
Notifications
You must be signed in to change notification settings - Fork 1.5k
The all-new, pyscript.web (ignore the branch name :) ) #2129
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
Conversation
In general this looks good to me but I have some issue around I understand the moment it's accessed as property, if the element has a However, that is not how highly dynamic DOM works so that if I accessed a Also if a parent element empties itself, that node with I think A lot of "live functionality" can indeed lead to confusion if we cache too much and while I fully embrace and promote caching whenever it's possible, it looks to me like a WeakMap to relate DOM nodes identities to their counter Python wrapper is missing around some logic but I have no idea if Python has WeakMap concept anywhere in its standard lib, considering also both MicroPython and Pyodide cross-compatibility. edit P.S. @mchilvers I know |
@WebReflection I agree. The cached _parent thing has always smelled to me. My preference would be don't cache/guard it at all for now - we can always try something if performance is actually an issue. |
for more information, see https://pre-commit.ci
…n actual DOM element.
…yscript into mc/pyscript-web-minor-cleanup
for more information, see https://pre-commit.ci
…yscript into mc/pyscript-web-minor-cleanup
for more information, see https://pre-commit.ci
…yscript into mc/pyscript-web-minor-cleanup
for more information, see https://pre-commit.ci
…yscript into mc/pyscript-web-minor-cleanup
Description
Minor polishing.
Changes
Checklist
CHANGELOG.md