Ticket #3774 (closed defect: fixed)
[with patch, positive review] __radd__ doesn't work when left hand side is an Element
| Reported by: | robertwb | Owned by: | robertwb |
|---|---|---|---|
| Priority: | major | Milestone: | sage-3.1.3 |
| Component: | coercion | Keywords: | |
| Cc: | AlexGhitza | Work issues: | |
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
On Aug 1, 2008, at 7:05 AM, Nils Skoruppa wrote: It seems that, for non elements, __radd__ is set disfunctional by the coercion model. On the other hand, it might be desirable to have this enabled for people writing their own classes but having reasons to avoid (parts of) the coercion system (like me :-)
Attachments
Change History
comment:1 Changed 5 years ago by robertwb
- Summary changed from __radd__ doesn't work when left hand side is an Element to [with patch, needs review] __radd__ doesn't work when left hand side is an Element
comment:3 Changed 5 years ago by mhansen
This could use a doctest. robertwb, do you want to write one, if not, I can probably do it a bit later.
comment:4 Changed 5 years ago by robertwb
Please go ahead and write one, though implementing __radd__ should not be encouraged.
Note: See
TracTickets for help on using
tickets.

