#10948: Calling point on an iterator of 3d points raises an AttributeError
------------------------+---------------------------------------------------
   Reporter:  slabbe    |          Owner:  jason, was
       Type:  defect    |         Status:  new       
   Priority:  major     |      Milestone:  sage-4.7.1
  Component:  graphics  |       Keywords:            
Work_issues:            |       Upstream:  N/A       
   Reviewer:            |         Author:            
     Merged:            |   Dependencies:            
------------------------+---------------------------------------------------

Comment(by slabbe):

 I think I left this ticket as "new" because I was not sure about my fix.
 My question was : Is it necessary to expand the iterator as a list to fix
 it?

 The problem was that in the function ``point``, trying ``point2d`` on the
 iterator consumes it. Maybe ``point2d`` could do a copy of the iterator
 with ``itertools.tee`` before consuming it? I think such a fix would be
 better. What do you think?

 Sébastien

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