#19927: unsigned infinity not hashable
--------------------------------+----------------------------
   Reporter:  rws               |            Owner:
       Type:  defect            |           Status:  new
   Priority:  major             |        Milestone:  sage-7.1
  Component:  basic arithmetic  |         Keywords:
  Merged in:                    |          Authors:
  Reviewers:                    |  Report Upstream:  N/A
Work issues:                    |           Branch:
     Commit:                    |     Dependencies:
   Stopgaps:                    |
--------------------------------+----------------------------
 {{{
 sage: hash(-oo)
 -9223372036854775808
 sage: hash(oo)
 9223372036854775807
 sage: hash(unsigned_infinity)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-21-d3ea465a9e73> in <module>()
 ----> 1 hash(unsigned_infinity)

 /home/ralf/sage/src/sage/structure/sage_object.pyx in
 sage.structure.sage_object.SageObject.__hash__
 (build/cythonized/sage/structure/sage_object.c:2739)()
     344             TypeError: <type
 'sage.structure.sage_object.SageObject'> is not hashable
     345         """
 --> 346         raise TypeError("{} is not hashable".format(type(self)))
     347
     348     def _cache_key(self):

 TypeError: <class 'sage.rings.infinity.UnsignedInfinity'> is not hashable
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/19927>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to