On Tue, Mar 10, 2009 at 6:01 PM, Robert Bradshaw <rober...@math.washington.edu> wrote: > Most of the errors caught are because it's trying to detect an > action, i.e. given a*b, it tries out a._rmul_(b) and, if successful, > registers that as an action, but otherwise goes on to try the next > thing. The benefit of this is convenience to the author--you just > have to implement an _rmul_ method on your elements and it works. Of > course, as you have indicated, this does have its drawbacks.
How many places is this used? In my (fairly fresh) Sage session, there are only 9 actions in the action cache (on matrices, number fields, and polynomials). I'd be willing to write the _get_action_ methods for these cases, if it would help kill off some of the excess error catching in coercion (I'm really not very fond of the idea "try it to see if it will work", anyway). Carl --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---