#11115: Rewrite cached_method in Cython
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner: jason
Type: enhancement | Status: closed
Priority: major | Milestone: sage-5.0
Component: misc | Resolution: fixed
Keywords: category cython | Merged in: sage-5.0.beta0
cache | Reviewers: Nicolas M. ThiƩry,
Authors: Simon King | Andrey Novoseltsev, Volker Braun
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #9138, #11900 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
What's the purpose of this opaque block of code?
{{{
if args:
lenargs = len(args)
nargs = self._argument_fixer._nargs
if self._inst_in_key:
if lenargs>=nargs:
k = (self._instance,(args,()))
else:
k =
(self._instance,(<tuple>args+(<tuple>self._argument_fixer._default_tuple)[-nargs+lenargs:],()))
else:
if lenargs>=nargs:
k = (args,())
else:
k =
(<tuple>args+(<tuple>self._argument_fixer._default_tuple)[-nargs+lenargs:],())
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/11115#comment:186>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.