On 2017-09-07 19:11, Ben Hutz wrote:
There does not appear to be an __eq__() operator implemented for scheme points, but it does show up in tab completion in the notebook, but can't tell me where the code is from. Is this an artifact of starting to transition the code to python3. Or this just broken somewhere?
Nothing is broken. The __eq__ method is a convience wrapper added by Python to ensure that a.__eq__(b) or type(a).__eq__(a,b) still works. Every type which has rich comparison implemented in C (or Cython) will have such a slot wrapper, even if there is no actual __eq__ method implemented anywhere.
(I am starting to wonder if I should write a blog post explaining this, it's not the first time that somebody asks this).
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.