#9089: Graphics3dGroup __add__ modifies its arguments
---------------------------+------------------------------------------------
Reporter: jason | Owner: jason, was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.4.3
Component: graphics | Keywords:
Author: Jason Grout | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by jason):
Replying to [comment:6 robertwb]:
> Replying to [comment:5 jason]:
> > Since we now have a Sage-written sum function, maybe we could just
have the sum function call first_object._sum(list of things to sum) if it
exists, and make a _sum method that does a Graphics3dGroup(sum_list)
behind the scenes? This would also help with a recent ticket that ncohen
opened about sum being really slow for linear programming stuff.
>
> That's a great idea! (Certainly a new ticket.)
Actually, I just checked, and something like it is already being done. If
you do sum(something,...), then if something has a sum method, it is
called: something.sum(...). Of course, this won't work with lists or
generators.
Anyways, feel free to review this ticket!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9089#comment:7>
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.