#7537: list(SR('c').iterator()) is empty
-------------------------+--------------------------------------------------
   Reporter:  malb       |       Owner:  burcin    
       Type:  defect     |      Status:  new       
   Priority:  critical   |   Milestone:  sage-4.3.4
  Component:  symbolics  |    Keywords:            
     Author:             |    Upstream:  N/A       
   Reviewer:             |      Merged:            
Work_issues:             |  
-------------------------+--------------------------------------------------

Comment(by burcin):

 Do you mean return an iterable which returns `self` when `.next()` is
 called?

 If you're traversing a symbolic expression, and working with iterators, I
 can't think of any case where symbols, constants and numeric coefficients
 don't form a special case which will be treated separately. The usual way
 to write code to traverse the expression tree should check if
 `.operator()` returns `None`.

 I admit that I don't use this interface often enough to decide on the
 design though. The recent thread on sage-devel about indexing parts of
 expressions also shows that this needs work.

 Do you have a use case we can work from? How did you run into this?

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