#9958: Upgrade python to 2.7
---------------------------+------------------------------------------------
   Reporter:  mhampton     |          Owner:  tbd                               
              
       Type:  enhancement  |         Status:  needs_work                        
              
   Priority:  major        |      Milestone:                                    
              
  Component:  packages     |       Keywords:                                    
              
Work_issues:               |       Upstream:  N/A                               
              
   Reviewer:               |         Author:                                    
              
     Merged:               |   Dependencies:  #11156 #11236 #11244 #11264 
#11339 #11363 #11376
---------------------------+------------------------------------------------

Comment(by fbissey):

 With python-2.6:
 {{{
 sage: n=2^63+2^13
 sage: n
 9223372036854784000
 sage: int(n)
 9223372036854784000L
 sage: hash(n)
 -9223372036854767616
 sage: hash(int(n))
 -9223372036854767616
 }}}
 with python-2.7
 {{{
 sage: n=2^63+2^13
 sage: n
 9223372036854784000
 sage: hash(n)
 8192
 sage: int(n)
 9223372036854784000L
 sage: hash(int(n))
 -9223372036854767616
 }}}
 Furthermore in both case:
 {{{
 sage: type(n)
 <type 'sage.rings.integer.Integer'>
 sage: type(int(n))
 <type 'long'>
 }}}
 So I would expect different hashes naively.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9958#comment:125>
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 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/sage-trac?hl=en.

Reply via email to