lupa icon indicating copy to clipboard operation
lupa copied to clipboard

Lua in Python

Results 80 lupa issues
Sort by recently updated
recently updated
newest added

**Introduction:** With the recent introduction of `python.args`, a subtle semantic defect relating to Lua varargs has leaked. Moreover, the performance of Python calls in Lua (with and without `python.args`) would...

A dependency cycle avoids both Lua references and Python references from being collected by their respective garbage collection systems. ## How to reproduce This example uses __gc on tables, which...

I have a Lua function that receives a python dict-based object 'attributes' (from sqlachemy) as argument and want to check for presence of a key - as per python hasattr(obj,...

I have searched this question using google, but I cannot find an example like that.please help me. Thinks.

Fixes #144. Currently if a lua coroutine calls Python code which raises an exception, a LuaError will be raised and the original exception will be lost. This isn't consistent with...

I am getting segfaults from time to time. It seems to happen when python objects are wrapped and sent to the lua runtime. Lupa version 1.4 Lua: tested version 5.1.5,...

> > > import lupa > > > r = lupa.LuaRuntime() > > > r.globals().test == r.globals().test > > > False I can supply a patch that adds **richcmp** and...

I'd like to give my lua scripts access to some coroutines defined in Python. Here's what I tried: ``` lua = LuaRuntime() lua_yield = lua.eval('coroutine.yield') def py_task(args) # Does some...

Lua objects support operator overloading in their metatable: http://www.lua.org/manual/5.3/manual.html#2.4 Mapping the Lua arithmetic etc. operators for wrapped Python objects to the equivalent Python operators should provide a much better user...

If you use coroutines, lupa will not show a Python error. Here a code to reproduce: ```python from lupa import LuaRuntime def test(): int("Hello") lua = LuaRuntime() func = lua.eval("function(test)...