SWIG allows wrapping of C++ == operator.In the current SWIG Python implementation, the python __eq__ method raises an exception if the instance passed as an argument is not of the required type. It should return False.
There is a patch fixing this at https://sourceforge.net/tracker/?func=detail&aid=3511480&group_id=1645&atid=301645, please test if it works for you (and doesn't introduce any other problems).
Fixed in commit https://github.com/swig/swig/commit/687cf9c9c1b886ef4a828b2c29610183e9fef26d (for swig-4.0.0). This corrects a bug ensuring NotImplemented is returned when wrapping the operator overloads.
Log in to post a comment.
There is a patch fixing this at https://sourceforge.net/tracker/?func=detail&aid=3511480&group_id=1645&atid=301645, please test if it works for you (and doesn't introduce any other problems).
Fixed in commit https://github.com/swig/swig/commit/687cf9c9c1b886ef4a828b2c29610183e9fef26d (for swig-4.0.0). This corrects a bug ensuring NotImplemented is returned when wrapping the operator overloads.