>>> import sympy as sp
>>> x = sp.Symbol('x')
>>> e = x**2 -7
>>> e(4)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.5/site-packages/sympy/core/basic.py", line
1945, in __call__
return Function(self[0])(*args)
NameError: global name 'Function' is not defined
Ted
Thanks for bringing it. We have actually a long thread about it here:
http://groups.google.com/group/sympy-patches/browse_thread/thread/628ebc799ee57ec1/
If you'd like to help to get this fixed, it'd be really awesome. I
think Lance is not working on this anymore, so this issue is open for
anyone to fix. :)
Ondrej
Well, you should at least raise NotImplementedError until then.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
Right, let's fix it:
http://code.google.com/p/sympy/issues/detail?id=1292
Ondrej
Thanks a lot!
The patch looks good, all tests pass. It's +1 with me.
Brian, Lance and Riccardo, do you have any objection to it? We were
discussing this a lot in the thread I posted above, so I want to make
sure all is ok with this, before I push it in.
Ondrej
Maybe it can use _subs_dict instead of subs, but I really don't care, we can
change that later if at all. Lets push it in!
+1
Riccardo
Thanks for the comment. It's in. Welcome to SymPy Ted :)
http://git.sympy.org/?p=sympy.git;a=commitdiff;h=7e1258f35ee57cf00363fec2c3a307ff191eee9d
Ondrej