|
|
|
|
|
by e12e
4066 days ago
|
|
Seems to be some issues with the interop still, eg: import js
>>> "globals" in dir(js)
True
>>> "console" in dir(js.globals)
False
>>> js
<module 'js' (built-in)>
>>> js.globals.console
<js.Object handle=14>
So apparently introspection doesn't quite work with the wrapped js. Also, if you try: "[ i for i in js.globals]" (or equivalently iterate/loop over the globals-object) - the whole repl/tab hangs.Not really an issue for running business logic in the browser, but if this was a full python repl-interface (with ipython support!) to the whole browser DOM -- that'd be a fantastic tool. |
|