#15331: Do not try to create embedded number field morphisms for non-embedded
number fields
------------------------+---------------------------------
Reporter: SimonKing | Type: defect
Status: new | Priority: major
Milestone: sage-5.13 | Component: number fields
Resolution: | Report Upstream: N/A
------------------------+---------------------------------
The attempt to create an embedded number field morphisms for non-embedded
number fields currently fails (and should of course fail).
{{{
sage: L.<i> = NumberField(x^2 + 1)
sage: K = NumberField(L(i/2+3).minpoly(), names=('i0',),
embedding=L(i/2+3))
sage: from sage.rings.number_field import number_field_morphisms
sage: number_field_morphisms.EmbeddedNumberFieldMorphism(R, self)
Traceback (most recent call last):
...
RuntimeError: maximum recursion depth exceeded in __instancecheck__
}}}
However, instead of running into an infinite recursion, a quick and simple
`ValueError` (or perhaps `TypeError`) should be raised.
--
Ticket URL: <http://trac.sagemath.org/ticket/15331>
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/groups/opt_out.