#8597: point(vector((2,3,4))) is broken
------------------------+---------------------------------------------------
   Reporter:  slabbe    |       Owner:  was     
       Type:  defect    |      Status:  new     
   Priority:  major     |   Milestone:  sage-4.4
  Component:  graphics  |    Keywords:          
     Author:            |    Upstream:  N/A     
   Reviewer:            |      Merged:          
Work_issues:            |  
------------------------+---------------------------------------------------
 The following works :

 {{{
 sage: point((2,3))

 sage: point((2,3,4))

 sage: point(vector((2,3)))
 }}}

 but the following doesn't :

 {{{
 sage: point(vector((2,3,4)))
 Traceback (most recent call last):

 /Users/slabbe/<ipython console> in <module>()

 /Users/slabbe/Applications/sage-4.3.4/local/lib/python2.6/site-
 packages/sage/plot/point.pyc in point(points, **kwds)
     300     except (ValueError, TypeError):
     301         from sage.plot.plot3d.shapes2 import point3d
 --> 302         return point3d(points, **kwds)
     303
     304 @rename_keyword(color='rgbcolor')

 /Users/slabbe/Applications/sage-4.3.4/local/lib/python2.6/site-
 packages/sage/plot/plot3d/shapes2.pyc in point3d(v, size, **kwds)
     712         return Point(v, size, **kwds)
     713     else:
 --> 714         A = sum([Point(z, size, **kwds) for z in v])
     715         A._set_extra_kwds(kwds)
     716         return A

 /Users/slabbe/Applications/sage-4.3.4/local/lib/python2.6/site-
 packages/sage/plot/plot3d/shapes2.pyc in __init__(self, center, size,
 **kwds)
     478     def __init__(self, center, size=1, **kwds):
     479         PrimitiveObject.__init__(self, **kwds)
 --> 480         self.loc = (float(center[0]), float(center[1]),
 float(center[2]))
     481         self.size = size
     482         self._set_extra_kwds(kwds)

 TypeError: 'sage.rings.integer.Integer' object does not support indexing
 }}}

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