#7575: mwrank interface improvements
-------------------------------+--------------------------------------------
Reporter: rlm | Owner: cremona
Type: defect | Status: closed
Priority: major | Milestone: sage-4.3.3
Component: elliptic curves | Resolution: fixed
Keywords: | Author: Robert Miller
Upstream: N/A | Reviewer: John Cremona
Merged: sage-4.3.3.alpha0 | Work_issues:
-------------------------------+--------------------------------------------
Comment(by mpatel):
I inserted diagnostic "cout" statements in
`extra_prime_class::~extra_prime_class` and ran a few tests. It seems the
destructor always gets called, but the timing --- and whether `PRIMES` is
actually written to the file system, it seems --- depends on whether I use
the library or pexpect interface.
The pexpect interface reads `SAGE_ROOT/data/extcode/mwrank/PRIMES`. But
it doesn't update this file when I quit the Sage command line. However,
if I run
{{{
sage -c "EllipticCurve([1,0,0,0,37455]).rank(proof=False)"
}}}
then "hg stat", for example, confirms the file has changed.
Would it help to call a `exitprimes` method explicitly, near the end of
`main`? This ''might'' avoid problems related to when the runtime calls
the destructor.
Disclaimer: I'm not at all familiar with eclib.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7575#comment:27>
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.