lupa
lupa copied to clipboard
Lua in Python
Hello, Sorry for the noob question, but I can't quite figure it out. I'm trying to use the Python JSON lib instead of any of the lua ones due to...
run ``` from lupa.lua53 import LuaRuntime lua = LuaRuntime() r = lua.execute(""" function 加法(a, b) return a + b end return 加法(1,2) """) print(r) ``` output ``` Traceback (most recent...
I'm facing a deadlock which I think cannot be avoided from the Python API alone. The situation is as follows: 1. A `LuaRuntime` is running on thread B. 2. It...
Closes https://github.com/scoder/lupa/issues/250
Although Lupa is very intuitive to use and its integration with Python is astoundingly thorough, not very much of Lua's guts are exposed to Python. There's no direct access to...
The Python environment has grown significantly with the advent of asyncio. The ability for Lua to cleanly interact with Python Coroutines (IE: async def func():) would be a golden addition...
This pull request makes slight changes to the currently existing setup.py to bypass the check for the name of the platform to start with 'win'. This allows LuaJIT to be...
To motivate this issue, consider the problem of recursively converting Lua tables (possibly with self-references) to Python lists. This requires knowledge of the identity/memory location of the Lua objects (as...
`This` issue occurs when building with the standard "setup.py build" command, as it completely skips checking and building LuaJit. It succeeds in building Lua51, Lua52, Lua53, and Lua54, and then...
Ok, this seems convoluted and best illustrated with code that reproduces the problem (Ubuntu 22.04, Python 3.10.12, Lupa 2.0, Lua 5.4) ```python import lupa lua = lupa.LuaRuntime(unpack_returned_tuples=True) luaTable = lua.execute('''return...