Ticket #5598 (closed defect: fixed)
[with patch, positive review] allow post-creation (pre-use) declaration of coercions
| Reported by: | robertwb | Owned by: | robertwb |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.2 |
| Component: | coercion | Keywords: | |
| Cc: | nthiery | Author(s): | Robert Bradshaw |
| Report Upstream: | Reviewer(s): | Nick Alexander | |
| Merged in: | sage-4.2.alpha1 | Work issues: |
Description (last modified by robertwb) (diff)
One can now do
a = A() mor = [morphism from X to A] A.register_coercion(mor)
This works as long as coercion has not yet been used (otherwise information cached (both here and elsewhere) becomes invalid).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

