#17777: unsigned infinity cannot be coerced into SR
-----------------------+----------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: algebra | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------+----------------------------
This is needed e.g. by `BuiltinFunction`s returning that value (#17678).
{{{
sage: from sage.rings.infinity import infinity, unsigned_infinity
sage: SR.coerce(infinity)
+Infinity
sage: SR.coerce(unsigned_infinity)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-5-164e151d39b6> in <module>()
----> 1 SR.coerce(unsigned_infinity)
/home/ralf/sage/src/sage/structure/parent.pyx in
sage.structure.parent.Parent.coerce
(build/cythonized/sage/structure/parent.c:10777)()
1290 return False
1291
-> 1292 cpdef coerce(self, x):
1293 """
1294 Return x as an element of self, if and only if there is a
canonical
/home/ralf/sage/src/sage/structure/parent.pyx in
sage.structure.parent.Parent.coerce
(build/cythonized/sage/structure/parent.c:10711)()
1317 except Exception:
1318 _record_exception()
-> 1319 raise TypeError("no canonical coercion from %s to %s"
% (parent_c(x), self))
1320 else:
1321 return (<map.Map>mor)._call_(x)
TypeError: no canonical coercion from The Unsigned Infinity Ring to
Symbolic Ring
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17777>
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.