how can i execute javascript from python on windows?
I want to get python-spidermonkey functionality. Similar:
>>> class Foo: ... def hello(self): ... print "Hello, Javascript world!" >>> cx.bind_class(Foo, bind_constructor=True) >>> cx.eval_script("var f = new Foo(); f.hello();") Hello, Javascript world!
I can not use python-spidermonkey because it does not work on windows
source share