python-lua icon indicating copy to clipboard operation
python-lua copied to clipboard

in operator can be used in list and dicts, not just lists

Open ExtReMLapin opened this issue 4 years ago • 1 comments

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

ExtReMLapin avatar Dec 30 '20 14:12 ExtReMLapin

thats smart! u should try making a pr.

focat69 avatar Mar 19 '22 01:03 focat69