#5324: notebook -- %time block bug
------------------------+---------------------------------------------------
   Reporter:  was       |       Owner:  mhansen        
       Type:  defect    |      Status:  positive_review
   Priority:  major     |   Milestone:  sage-4.2.1     
  Component:  notebook  |    Keywords:                 
Work_issues:            |      Author:                 
   Reviewer:            |      Merged:                 
------------------------+---------------------------------------------------

Comment(by was):

 > Is that just so i is defined as an integer if text has no elements when
 > reaching the line: return

 Yes.    splitlines and split('\n') have different semantics.  I changed to
 splitlines in anticipation of windows.

 You're right, using i=0 makes more sense, though of course won't make any
 difference since in this special case the list we're slicing is empty.

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