Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if _sub_ is not defined, then the coercion framework enters an infinite loop #17991

Closed
saliola opened this issue Mar 18, 2015 · 2 comments
Closed

Comments

@saliola
Copy link

saliola commented Mar 18, 2015

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).

CC: @nthiery

Component: coercion

Keywords: days64

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/17991

@saliola saliola added this to the sage-6.6 milestone Mar 18, 2015
@videlec
Copy link
Contributor

videlec commented Apr 23, 2015

comment:1

This is fixed in #18275 (closed)

@videlec videlec removed this from the sage-6.6 milestone Apr 23, 2015
@tscrim
Copy link
Collaborator

tscrim commented Apr 23, 2015

Reviewer: Travis Scrimshaw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants