Comment Comment by datsci_est_2015 One example is if an and b are arrays (e.g. numpy arrays) it’s not unreasonable for dunder eq to return an array of booleans.Another example might be if you have a domain specific representation of equality (e.g. class Equality) parent datsci_est_2015 4 months ago
Another example might be if you have a domain specific representation of equality (e.g. class Equality)