python-lua
python-lua copied to clipboard
in operator can be used in list and dicts, not just lists
According to this : https://github.com/dmitrii-eremin/python-lua/blob/5e61488e9552e2ba182480a8a0710fa3715430ab/pythonlua/luainit.lua#L388
It only checks if it's a list, but you could use in in python even for hashtables, then you would need in lua just to do
if dict[key] then
python code being
if key in dict
thats smart! u should try making a pr.