次の方法で(ガイドに従って)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'