How to execute javascript from python on windows?

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

+4
source share
2 answers
+4
source

You can call SpiderMonkey .

+1
source

All Articles