scoder

Results 650 comments of scoder

```python def py_task(args) # Does some work... lua_yield() # Does some more work... ``` You can't just expect this to work across the language runtimes. A `yield` in both Python...

Thanks. I don't think it's that easy, though. Lupa assumes that it owns the `lua_State`, and will deallocate it when the `LuaRuntime` is closed. It doesn't know that the `lua_State`...

Confirmed. I guess `None` / `null` dict/table keys are not a good idea. PR welcome that prevents this case by checking for `None` explicitly while copying the items.

Seems more of a Lua problem than a Lupa problem.

I agree that `_LuaTable` could benefit from a nicer `__repr__()` implementation, though. As could some other objects like numbers. PR welcome that makes it return something like `LuaTable({…})` and `LuaNumber(123.4)`....

Sounds good to me. AFAICT, there isn't currently a good way to convert tables with nil values. The nil values always get in the way of the iteration. Should the...

Or maybe `to_list(max_gap=...)`? Counting up against a global ratio might not work well if there is a large gap followed only by sequential indices. Or maybe both?

There is currently no wheel for M1, because the current build process does not build wheels for M1. I'm also not a mac user myself, so PR welcome.

[Tried switching to macos-12](https://github.com/scoder/lupa/actions/runs/2812606546), doesn't help. If someone who is interested in getting this to work could try out how to make it work, I'd be happy to accept a...