#15303: Coercion discovery fails to be transitive
-------------------------------------+-------------------------------------
Reporter: nbruin | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.0
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: Simon King | Reviewers:
Report Upstream: N/A | Work issues: Crash in permgroup.py
Branch: | Commit:
u/SimonKing/ticket/15303 | 528a03535447d67f04dc16d0a22cc38def54f9f1
Dependencies: #14711, #15329, | Stopgaps:
#15331 |
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
I just noticed the following, is it perhaps related to this ticket?
{{{
sage: ZZ(CC(1))
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-18-628bcdd9a52d> in <module>()
----> 1 ZZ(CC(Integer(1)))
/usr/local/src/sage-5.13.beta1/local/lib/python2.7/site-
packages/sage/structure/parent.so in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:8372)()
/usr/local/src/sage-5.13.beta1/local/lib/python2.7/site-
packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3856)()
/usr/local/src/sage-5.13.beta1/local/lib/python2.7/site-
packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3757)()
/usr/local/src/sage-5.13.beta1/local/lib/python2.7/site-
packages/sage/rings/integer.so in sage.rings.integer.Integer.__init__
(sage/rings/integer.c:7889)()
TypeError: unable to coerce <type
'sage.rings.complex_number.ComplexNumber'> to an integer
sage: ZZ(RR(CC(1)))
1
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15303#comment:99>
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.