#19125: DeprecatedMethod wrapping is broken
-----------------------------+----------------------------
Reporter: nbruin | Owner:
Type: PLEASE CHANGE | Status: new
Priority: blocker | Milestone: sage-6.9
Component: misc | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------
As reported on [https://groups.google.com/d/msg/sage-
devel/nion2hqoKbE/E8Kd5OFSEAAJ] we get the wrong result:
{{{
sage: var('a b c x y')
sage: eq1 = y == a*x+x^b
sage: eq2 = b == c/2
sage: eq3 = c == a^2
sage: eq1.subs_expr(eq2.subs_expr(eq3))
__main__:1: DeprecationWarning: subs_expr is deprecated. Please use
substitute instead.
See http://trac.sagemath.org/12834 for details.
1/2*a^2 == 1/2*c
}}}
This result is consistent with
{{{
sage: eq2.subs_expr(eq2.subs_expr(eq3))
}}}
which is indeed what the code currently effectively does. This affects any
(nested) deprecated method lookup at the moment, so needs to be fixed
ASAP.
--
Ticket URL: <http://trac.sagemath.org/ticket/19125>
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.