#1159: [reported upstream] Bug in python range
-----------------------------------------------------------+----------------
    Reporter:  robertwb                                    |         Owner:  
was                           
        Type:  defect                                      |        Status:  
closed                        
    Priority:  major                                       |     Milestone:  
sage-duplicate/invalid/wontfix
   Component:  packages                                    |    Resolution:  
duplicate                     
    Keywords:                                              |   Work_issues:     
                           
    Upstream:  Fixed upstream, in a later stable release.  |      Reviewer:  
Jason Grout                   
      Author:                                              |        Merged:     
                           
Dependencies:                                              |  
-----------------------------------------------------------+----------------
Changes (by jdemeyer):

  * status:  positive_review => closed
  * resolution:  => duplicate


Old description:

> {{{
> %python
> class MyInt:
>     def __init__(self, n):
>         self.n = int(n)
>     def __int__(self):
>         return self.n
>
> print range(MyInt(2**3), MyInt(2**3+10))
> print "here"
> print range(MyInt(2**34), MyInt(2**34+10))
> }}}

New description:

 {{{
 %python
 class MyInt:
     def __init__(self, n):
         self.n = int(n)
     def __int__(self):
         return self.n

 print range(MyInt(2**3), MyInt(2**3+10))
 print "here"
 print range(MyInt(2**34), MyInt(2**34+10))
 }}}

 Fixed by #9958.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/1159#comment:15>
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