How could I embed Lua into Python 3.x?

我的梦境 提交于 2019-12-10 14:01:24

问题


Is it possible to embed Lua into Python 3.x? If so how could I run and execute Lua scripts within my Python program? How good would the interaction be between the Languages for instance would Lua have access to all of Python's variables and classes and would Python have access to all of Lua's information?


回答1:


Try Lunatic Python, a two-way bridge between Python and Lua.




回答2:


In addition to Lunatic Python, there is Lupa, powered by LuaJIT:

http://pypi.python.org/pypi/lupa/0.9

See the link about advantages and reasons to use it.



来源:https://stackoverflow.com/questions/4527261/how-could-i-embed-lua-into-python-3-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!