Hi! I hope sage-devel is the right place to ask a very basic question on the coercion model.
sage.structure.parent.Parent has methods register_conversion and register_coercion. What is the difference between conversion and coercion? I see that there are different caches for the two. In what situation is a coercion used, and in what situation a conversion? BTW, I think a method that tells whether there is already a conversion resp. a coercion from a ring R is cached, would be quite handy. I could not find such method (returning "R in self._coerce_from_hash" resp. "R in in self._convert_from_hash"). Is there anything, or shall I implement it myself? Best regards, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org