#17991: if _sub_ is not defined, then the coercion framework enters an infinite
loop
------------------------+------------------------------------------------
Reporter: saliola | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: coercion | Keywords: days64, coercion, categories
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+------------------------------------------------
{{{
sage: C = cartesian_product([ZZ, ZZ])
sage: C
The cartesian product of (Integer Ring, Integer Ring)
sage: c = C.an_element()
sage: c
(1, 1)
sage: hasattr(c, '_sub_')
False
sage: c - c
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
...
RuntimeError: maximum recursion depth exceeded in __instancecheck__
}}}
implementing a ``_sub_`` method fixes the problem (such a method will be
implemented for Cartesian products on a separate ticket).
--
Ticket URL: <http://trac.sagemath.org/ticket/17991>
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.