#13890: small bug in point3d
------------------------+---------------------------------------------------
   Reporter:  tjolivet  |             Owner:  jason, was
       Type:  defect    |            Status:  new       
   Priority:  major     |         Milestone:  sage-5.6  
  Component:  graphics  |          Keywords:            
Work issues:            |   Report Upstream:  N/A       
  Reviewers:            |           Authors:            
  Merged in:            |      Dependencies:            
   Stopgaps:            |  
------------------------+---------------------------------------------------
 The following three commands work as expected (a Graphics object is
 returned)
 {{{
 sage: points([(1,1)])

 sage: points(iter([(1,1)]))

 sage: points([(1,1,1)])
 }}}
 but the following command raises an `AttributeError`.
 {{{
 sage: points(iter([(1,1,1)]))
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /home/jaje/dropbox/Dropbox/IFS/<ipython console> in <module>()

 /home/jaje/sage-5.5/local/lib/python2.7/site-packages/sage/plot/point.pyc
 in point(points, **kwds)
     310     except (ValueError, TypeError):
     311         from sage.plot.plot3d.shapes2 import point3d
 --> 312         return point3d(points, **kwds)
     313
     314 @rename_keyword(color='rgbcolor', pointsize='size')

 /home/jaje/sage-5.5/local/lib/python2.7/site-
 packages/sage/plot/plot3d/shapes2.pyc in point3d(v, size, **kwds)
    1021     else:
    1022         A = sum([Point(z, size, **kwds) for z in v])
 -> 1023         A._set_extra_kwds(kwds)
    1024         return A
    1025

 AttributeError: 'int' object has no attribute '_set_extra_kwds'
 }}}

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