Hacker News new | ask | show | jobs
by andersriutta 3292 days ago
This allows for calling synchronous JS functions from Python but not async JS functions, right? PyExecJS [0] also doesn't work with async JS, but Js2Py [1] might.

[0] https://github.com/doloopwhile/PyExecJS/issues/20 [1] https://github.com/PiotrDabkowski/Js2Py/blob/05e77f0d4ffe91e...

1 comments

"Write Python APIs, then call them from JavaScript using the V8 engine"
The author says it works both ways [0] (e.g., this test [1]), but I don't see a test with Python calling async JS.

[0] https://news.ycombinator.com/item?id=14596163 [1] https://github.com/tbodt/v8py/blob/3c727584df684540ce30f2572...