Hi Martin, This happens because it overrides __eq__. It probably would be better to replace it by a __richcmp__ anyways, which might even fix this problem. It has a few easy solutions. I will try to do a PR today for it.
Best, Travis On Wednesday, February 15, 2023 at 3:06:58 AM UTC+9 Martin R wrote: > sage: hash(SkewTableau([[1]])) > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) > Cell In [48], line 1 > ----> 1 hash(SkewTableau([[Integer(1)]])) > > TypeError: unhashable type: 'SkewTableaux_with_category.element_class' > > It inherits from ClonableList, I would have thought that this > automatically provides a hash. But of course: > > # __hash__ is not properly inherited if comparison is changed > # see <http://groups.google.com/group/cython-users/t/e89a9bd2ff20fd5a> > > :-( > > Martin > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/346e2dd4-bca2-4e12-9e33-e66de840a805n%40googlegroups.com.