#14190: Convert all functions in schemes.elliptic_curves.ell_rational_field.py
that
use caching to use @cached_method
-------------------------------+--------------------------------------------
Reporter: spice | Owner: spice
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.8
Component: elliptic curves | Keywords: @cached_method
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-------------------------------+--------------------------------------------
Some functions in schemes.elliptic_curves.ell_rational_field.py that
implement caching were written before the `@cached_method` decorator came
to be, for example theĀ `modular_degree()` method:
{{{
def modular_degree(self, algorithm='sympow'):
r"""
...
"""
try:
return self.__modular_degree
except AttributeError:
...
}}}
This patch would rework those functions to useĀ `@cached_method` and
eliminate the unnecessary try/except clauses etc.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14190>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.