This question is connected to my previous question [1].
I'd like to derive from `sympy.Function` and add some extra information to
the class. This works:
```
import sympy
class MyTest(sympy.Function):
def __init__(self, name):
return
a = MyTest('a')
a.fun = lambda x: x
```
It'd be easier to add the function definition straight in the initializer.
However
```
class MyTest(sympy.Function):
def __init__(self, name, fun):
self.fun = fun
return
a = MyTest('a', lambda x: x)
```
does *not* work.
Any idea why that is and how to fix it?
Cheers,
Nico
[1] https://groups.google.com/forum/#!topic/sympy/Iks7BQU_VgA
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/0b42776b-8a49-4d34-adaf-f722d6075a0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.