以下列方式(按照指南)使用 python-spidermonkey 会给我错误AttributeError: 'spidermonkey.Context' object has not attribute 'eval_script'
。
>>> import spidermonkey
>>> rt = spidermonkey.Runtime()
>>> cx = rt.new_context()
>>> cx.eval_script("1 + 2") + 3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'spidermonkey.Context' object has no attribute 'eval_script'