#6622: substitution of a dict into a symbolic expression modifies the dict
----------------------+-----------------------------------------------------
Reporter: was | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: calculus | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Description changed by mvngu:
Old description:
> {{{
> sage: var('v t')
> sage: f = v*t
> sage: D = {v: 2}
> sage: f(D, t=3)
> 6
> sage: D
> {v: 2, t: 3}
> }}}
>
> After the call above, D should *not* be changed.
New description:
{{{
sage: var('v t')
sage: f = v*t
sage: D = {v: 2}
sage: f(D, t=3)
6
sage: D
{v: 2, t: 3}
}}}
After the call above, D should *not* be changed. This issue was raised at
this [http://groups.google.com/group/sage-
support/browse_thread/thread/23ee185c8f5c992d sage-support] thread.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6622#comment:2>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---