#13864: Configure Python with pydebug when SAGE_DEBUG is set
-------------------------------------+--------------------------------------
Reporter: jpflori | Owner: jason
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-5.6
Component: misc | Resolution:
Keywords: python spkg | Work issues:
Report Upstream: N/A | Reviewers: Volker Braun
Authors: Jean-Pierre Flori | Merged in:
Dependencies: #13865 | Stopgaps:
-------------------------------------+--------------------------------------
Comment (by jpflori):
Replying to [comment:30 SimonKing]:
> For the record: These imports occur when one tries to import the integer
ring, as reported by `python -v`:
> {{{line 200, in <module>
> import sage.rings.rational
> File "fast_arith.pxd", line 5, in init sage.rings.rational
(sage/rings/rational.c:27828)
> File "fast_arith.pyx", line 51, in init sage.rings.fast_arith
(sage/rings/fast_arith.c:8060)
> ImportError: cannot import name ZZ
> }}}
>
> Scary. All "usual suspects" are in place: Weak references, coercion,
categories.
>
> But what goes wrong? Is it a circular import? If so, what can be done to
improve it?
I think it is indeed a circular import.
I've been chasing those starting from ring_integer yesterday night, but it
just gave be bad dreams.
After three or four files where I had to remove various things imported
from ring_integer and importing it, I got stuck in
sage/libs/ntl/ntl_ZZ_p.pyx complaining about not being able to cast a
ZZ_c* to a Py_Object and gave up.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13864#comment:33>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.