-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LuaRuntime.table interface prevents creating table with non-string keys #31
Comments
A new method I take pull requests, including documentation. :) |
Could you please clarify what should
Do you mean |
it would iterate over "args" and process each value separately as either mapping or iterable. Keyword arguments from "kwargs" will be added at the end as if they had been passed as a single dict. Any multiply provided keys will overwrite the previous values, so |
This makes sense; I'll work on a PR. |
It is not possible to create a table from
{1: "foo", 20: "bar"}
dict usingLuaRuntime.table(**kwargs)
because in Python kwarg keys must be strings.What do you think about adding a method like
.table(args, kwargs)
(not sure about its name)?The text was updated successfully, but these errors were encountered: