#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
Component: graphics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Drawing a list of 2d and 3d points works :
{{{
sage: point([(i,i) for i in range(10)])
sage: point([(i,i,i) for i in range(10)])
}}}
Drawing an iterator of 2d points works :
{{{
sage: point((i,i) for i in range(10))
}}}
Drawing an iterator of 3d points is broken :
{{{
sage: point((i,i,i) for i in range(10))
Traceback (most recent call last):
...
AttributeError: 'int' object has no attribute '_set_extra_kwds'
}}}
The same bug is obtained for empty iterator :
{{{
sage: point([])
sage: point(iter([]))
Traceback (most recent call last):
...
AttributeError: 'int' object has no attribute '_set_extra_kwds'
}}}
Moreover, I wonder if the line 1022 of sage/plot/plot3d/shapes2.pyc in
point3d(v, size, **kwds)
{{{
A = sum([Point(z, size, **kwds) for z in v])
}}}
should be
{{{
A = sum([Point(z, size, **kwds) for z in v], Graphics())
}}}
or something?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10948>
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.