On Jul 26, 12:03 pm, William Stein <wst...@gmail.com> wrote:
> Did you overload *both* __cmp__ *and* __hash__?

The matrix morphism class implements just __cmp__, with no __hash__.

Existing free module morphism class implements neither, my new vector
space morphism class implements neither.

Free module morphisms behave properly with respect to equality (eg
==), making calls to the matrix morphism __cmp__ in the process.

Vector space morphisms can "see" and use the matrix morphism __cmp__,
but the  ==  syntax won't behave properly.

Rob

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to