On Thursday 09 October 2008, Robert Bradshaw wrote: > self can be either the first or second argument of an arithmetic > operator for an extension class (this is just how Python works). > Usually we don't have to worry about that in Sage as the coercion > model makes sure that both are of the same type (or at least same > parent) before user code gets called.
Hi Robert, I understand that argument in the context of say multiplication but for __pow__ you can't switch the parameters around (?) Cheers, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---