#16881: Fix caching of NumberField_generic.__pari_bnf_certified
-----------------------------+--------------------------------------
Reporter: pbruin | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.4
Component: number fields | Keywords: cache, performance
Merged in: | Authors: Peter Bruin
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------+--------------------------------------
The method `NumberField_generic.pari_bnf()` does not detect if the PARI
`bnf` has already been certified and therefore always calls
`bnfcertify()`. This is due to name-mangling of double-underscore
attributes; more precisely,
{{{
getattr(self, "__pari_bnf_certified", False)
}}}
should be
{{{
getattr(self, "_NumberField_generic__pari_bnf_certified", False)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16881>
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.