问题
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