Comment #31 on issue 1620 by [email protected]: Allow derivatives of unknown functions evaluated at a point
http://code.google.com/p/sympy/issues/detail?id=1620

Yes,I was just looking into this. It turns out that hash does not need to be unique, one could simply use

def __hash__(self):
    return 1

safely, but it's very inneficient (it requires __eq__ to be called every time). Having objects that compare equal returning different hashes is "a bad thing". See http://docs.python.org/reference/datamodel.html#object.__hash__

I updated the pull request with a __hash__ based on the free_variables. I think we should also fix Lambda.

--
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