#8695: UniqueRepresentations implements __eq__ but not __ne__
------------------------------+---------------------------------------------
Reporter: hivert | Owner: hivert
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.4
Component: misc | Keywords: UniqueRepresentation, equality
Author: Florent Hivert | Upstream: N/A
Reviewer: Nicolas Borie | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Comment(by nthiery):
Replying to [comment:7 mhansen]:
> Replying to [comment:4 nthiery]:
> > I am just not sure about forcing UniqueRepresentation to inherit from
object. Let's discuss this over the phone.
>
> The only thing that inheriting from object does is make it a "new-style"
class in Python, which is what everything should be now. In the 3.x
series, old-style classes are removed.
http://docs.python.org/reference/datamodel.html
Yup! So there is particularly no point about forcing it explicitly, since
it will be automatically the case later, and in the mean time there is no
reason to fix something that ain't broken.
We discussed with Florent over the phone. He will remove the inheritance
from object, reupload the patch, and set a positive review on my behalf.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8695#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.