Hi Alex,
> sage: limit(sin(y[0])/y[0],y[0]=0)
> ------------------------------------------------------------
>   File "<ipython console>", line 1
> SyntaxError: keyword can't be an expression (<ipython console>, line
> 1)
>
> sage: w=x
> sage: limit(sin(w)/w,x=0)
> 1
> sage: limit(sin(w)/w,w=0)
> sin(x)/x

This is because keyword arguments are treated as strings in Python so
what you aren't passing in is a variable or expression, but a string.
For example,

sage: y = [x]
sage: w = x
sage: def f(*args, **kwds):
....:     return kwds
....:
sage: f(y=2)
{'y': 2}
sage: f(w=y)
{'w': [x]}

--Mike

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to