Robert Bradshaw wrote: > This is the same trick we use for the backslash operator in Sage. >
Aha, the one custom infix operator that I know of in Sage. In the backslash operator and in the article posted, the rmul only stored the argument and the __mul__ only performed the operation. Are you always guaranteed that __rmul__ will be called right before __mul__ for the same invocation of the operation? Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---