#11670: fix number fields being unique parents -- this got broken over the years
-------------------------------------+-------------------------------------
Reporter: was | Owner: davidloeffler
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: number fields | Resolution:
Keywords: | Merged in:
Authors: Julian Rueth | Reviewers: Simon King
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/saraedum/ticket/11670 | 70702aa690a31cc36b9febe36462c67ebd57dcee
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Replying to [comment:30 saraedum]:
> Ok. Maybe I am using the wrong vocabulary here. I meant, "uniue" as in
"two fields generated from the same arguments are identical", not as in
"unique representation".
If you want two fields generated from the same arguments to be identical,
then you can either use `CachedRepresentation` or `UniqueFactory`.
If you additionally want unique parent behaviour (which means you cannot
have two distinct instance of your class that evaluate equal), you can use
`UniqueRepresentation`, or you can add `WithEqualityById` (it could be
that I wrongly remember the name, but it is something similar to this) as
a base class.
--
Ticket URL: <http://trac.sagemath.org/ticket/11670#comment:32>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.