#13447: Make libsingular multivariate polynomial rings collectable
-------------------------------------------------------+--------------------
Reporter: nbruin | Owner: rlm
Type: defect | Status:
needs_info
Priority: major | Milestone:
sage-5.4
Component: memleak | Resolution:
Keywords: | Work issues: Input
from libsingular experts
Report Upstream: Reported upstream. No feedback yet. | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-------------------------------------------------------+--------------------
Comment (by nbruin):
Why don't you do something along the lines of:
{{{
cdef cparent get_cparent(parent) except? NULL:
if parent is None:
return NULL
cdef ntl_ZZ_pEContext_class c
try:
c = parent._modulus
except KeyError:
c = <some vaguely appropriate proxy value>
return &(c.x)
}}}
This should really only be happening upon deletion anyway and I I'd be
surprised if having the correct `_modulus` is very important at that
point. It's a dirty hack but alternatives probably mean a full
reimplementation of these polynomial rings.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13447#comment:30>
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.