You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I think it makes sense to support this. However, we also have to make sure it produces something reasonable when comparing a Python object to a Lua object.
PR welcome that adds support for the Lua equality operator to Lupa wrapped Python objects, as well as a bunch of tests that show that the behaviour of different Python and Lua objects is "as expected", both left and right of the comparison operator.
Should comparison of wrapped objects (both POBJECTs in Lua and Lua objects in Python) follow the host language semantics or the native language semantics?
I would say they should follow the native language semantics, so e.g. Python lists compare by value in Lua and Lua tables compare by identity in Python. See also #249.
Hi,
The following code fails with
TypeError: __eq__() missing 1 required positional argument: 'rhs'
Is it a bug or am I missing something?
Python 3.8.2, Lupa 1.9
Thanks
The text was updated successfully, but these errors were encountered: