Closed bugzpodder closed 1 year ago
this module has nothing to do with Python. In polyscript there is a transform
that is interpreter dependent and it's used to automatically transform parameters when the interpreter supports it. If you want to pass Python to JS you need to use the interpreter ability to do so, which is documented in Pyodide via to_js()
.
and in main thread foocannot be called. also doesn't work if obj is a module The only that worked is:
xworker.sync.foo = foo
orsetattr(xworker.sync, "foo", foo)