#11753: Fix step=0 in (x)srange
------------------------+---------------------------------------------------
   Reporter:  ppurka    |          Owner:  jason, was                     
       Type:  defect    |         Status:  needs_review                   
   Priority:  minor     |      Milestone:  sage-4.7.2                     
  Component:  graphics  |       Keywords:  srange xsrange division_by_zero
Work_issues:            |       Upstream:  N/A                            
   Reviewer:            |         Author:                                 
     Merged:            |   Dependencies:                                 
------------------------+---------------------------------------------------

Comment(by dimpase):

 Replying to [comment:8 ppurka]:
 > Replying to [comment:7 dimpase]:
 > > in misc.py, can't you do {{{map(len,ranges)}}} rather than fortranic
 {{{[len(r) for r in ranges]}}} ?
 > I haven't touched that code except to put opening and closing braces [
 ]. Without the braces it was giving me EOF errors and was failing the
 doctests.

 The condition {{{step == 0}}} you check looks worrisome. From a glance
 over the code it's not clear whether {{{step}}} cannot be a float, and if
 it is a float, then such a test does not make much sense.

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