Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3313 by laurence.gonsalves: Function class violates Liskov substitution principle
http://code.google.com/p/sympy/issues/detail?id=3313

import sympy
a = sympy.Function('a')
a(5)
a(5)
class FooFunction(sympy.Function):
...   pass
...
b = FooFunction('b')
b(5)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'FooFunction' object is not callable

Why is a callable but b isn't?

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
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/sympy-issues?hl=en.

Reply via email to