#16250: Monoids._test_one() incorrect for unhashable one elements
-------------------------------------+-------------------------------------
       Reporter:  saraedum           |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  trivial            |    Milestone:  sage-6.3
      Component:  categories         |   Resolution:
       Keywords:  hash               |    Merged in:
        Authors:  Julian RĂ¼th        |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/saraedum/ticket/16250            |  c4f8c62f8da90c776a32a86dd768c490fc50836a
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by saraedum):

 Replying to [comment:11 nthiery]:
 > Replying to [comment:9 saraedum]:
 > Now, if we would want a real fix we could have polynomial rings check
 > whether there base ring elements can be hashed, and insert `__hash__ =
 None`
 > in their custom element class. This could get tricky for a
 > Cython class though. But this states quite explicitly: I am hashable if
 my
 > base ring elements are.
 Do you know if a Cython class can be marked as being unhashable?
 `__hash__=None` does not work in Cython. (Maybe that's what you meant by
 "This could get tricky for a Cython class though."?)

--
Ticket URL: <http://trac.sagemath.org/ticket/16250#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to