It's mainly because a lot of things like the following should also work and
the authors didn't want to add an exception in the "special" case where all
variables have been assigned an input.
sage: f=x^5
sage: f(x=f)
x^25
sage: var("y")
y
sage: g=x*y
sage: g(x=2)
2*y
Note that the most important use case of the == sign still works as
expected:
sage: if f(x=2)==32: print "yes"
....:
yes
sage: if f(x=2)==31: print "yes"
....:
sage:
--
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-support
URL: http://www.sagemath.org