Operator commutativity
Paul Rudin
paul.nospam at rudin.co.uk
Mon Sep 19 07:23:48 EDT 2011
More information about the Python-list mailing list
Mon Sep 19 07:23:48 EDT 2011
- Previous message (by thread): Operator commutativity
- Next message (by thread): Operator commutativity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Henrik Faber <hfaber at invalid.net> writes: > How can I make this commutative? Incidentally - this isn't really about commutativity at all - the question is how can you define both left and right versions of add, irrespective of whether they yield the same result. I think __radd__ is what you're after.
- Previous message (by thread): Operator commutativity
- Next message (by thread): Operator commutativity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list