Andrea Giammarchi

Results 729 comments of Andrea Giammarchi

the `worker.js` is the file that bundles this for you ... have you tried that? it's `linkedom/worker`

we are at `0.18.4` ... you are a tad behind ...

This seems like an upstream issue for @dpgeorge but a workaround from our side could be something like: ```python import js def iterable(proxy): if hasattr(proxy, "next"): while True: next =...

I think it is indeed, closing as released next!

> I suspect that whatever proxy is being created, it isn't the same as the one that was added. I've mentioned this to @dpgeorge in the past and he told...

> Would that be helpful? IIRC that's how Pyodide does it too and since you have a FinalizationRegistry in place, that's easier on that regard as there will be less...

@dpgeorge if worth adding anything at all, in JS the usage of `WeakMap` is also quite common and having always new keys and no way to relate some Python thing...

@dpgeorge thanks, I've left a comment that, once addressed, would make that MR good to land to me.

the latest *npm* module should've solved this ... please try with `https://cdn.jsdelivr.net/npm/@pyscript/[email protected]/dist/core.js` as `script` module source, thanks.

you can check/confirm this in here: https://pyscript.com/@agiammarchi/bug-event-listeners-do-not-unregister-copy-copy/latest I am closing this as it will be resolved within the next release. Until then, feel free to use our non official *npm*...