lupa
lupa copied to clipboard
Lua in Python
Hi, The following code fails with `TypeError: __eq__() missing 1 required positional argument: 'rhs'` ```python import lupa lua = lupa.LuaRuntime(unpack_returned_tuples=True) class foo: def __init__(self): self.a = 1 def __eq__(self, rhs):...
[feature request] In a standalone interpreter, {...} contains the command-line arguments. It would be useful if it's possible to set this from lupa, which would help with writing a Lua...
Hi, I've been using LUPA a bit and its functionality to block access to python objects works great. But I just realized that the LUA builtins are still exposed (eg...
I'm creating a simple table like this: `table = lua.table_from({'id': 0, 'name': 'name'})` Is it possible to print the lua table representation? I tried creating a lua function that would...
Segfault
Python 3.7.2 ``` from lupa import LuaRuntime lua_runtime = LuaRuntime() lua_runtime.table_from({None: {}}) ``` **Output** python[27326]: segfault at 1 ip 0000000000000001 sp 00007ffe1475e9f8 error 14 in python[400000+290000]
Hello! I installed lupa, luajit. At the same time, I installed lua 5.3.5 under a non-root user, and used luarocks to install socket.http. Then use lupa execute lua file (lua...
I've seen #35 already, but that only implements it for Python functions, any ways that this could be implemented for classes?
When runtime encoding is None, `lua.table(foo=132)` creates a Lua table with userdata as a key. There is a workaround (use `lua.table_from` which supports dicts with binary keys). But I think...
Hi, I am trying to pass a python function as argument into a function defined in lua code, it complaining that: `LuaError: XXXXXX.lua:44: attempt to call local 'opfunc' (a table...
Hi, Thanks for an awesome project! I'm installing lupa into 2.7 virtualenv on OS X 10.9.5. The following seems to work fine: ``` brew install lua pip install lupa ```...