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

  * status:  new => needs_review
  * author:  => Burcin Erocal


Comment:

 With attachment:trac_7537-iterator.patch we get an error when trying to
 iterate over symbols, constants or numeric objects:

 {{{
 sage: x.iterator()
 Traceback (most recent call last):
 ...
 ValueError: cannot iterate over numeric, constant or symbol
 sage: pi.iterator()
 Traceback (most recent call last):
 ...
 ValueError: cannot iterate over numeric, constant or symbol
 sage: SR(5).iterator()
 Traceback (most recent call last):
 ...
 ValueError: cannot iterate over numeric, constant or symbol
 }}}

 This patch depends on #9989 (not in terms of functionality, but it will
 fail to apply since the patch there touches the same part of
 `sage/symbolic/expression.pyx`).

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