The following does not complain:

###
>>> var('x')
x
>>> x(1)
x(1)
###

I wish this would raise an error... If x isn't a function, what
meaning would x(1) have? One problem with no warning being given is
that if you import everything from symp.abc as in "from symp.abc
import *" you will wipe out S and N as special sympy classes. Then,
because S(1) will not complain about not being a function,
calculations will proceed but S(1) will not behave like S.One.

Perhaps there's a good reason for this behavior...just wondering what
it might be.

--

You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.


Reply via email to