#5598: [with patch, needs review] allow post-creation (pre-use) declaration of
coercions
----------------------+-----------------------------------------------------
Reporter: robertwb | Owner: robertwb
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: coercion | Keywords:
----------------------+-----------------------------------------------------
Comment(by robertwb):
One can now do
{{{
sage: A = SomeParent()
sage: mor = [morphism from X to A]
sage: A.register_coercion(mor)
}}}
This works as long as coercion has not yet been used (otherwise
information cached (both here and elsewhere) becomes invalid).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5598#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---