If X and Y are sets, then the __xor__ operator (X ^ Y) returns the intersection of X and Y. The carat is reflects the mathematical notation for the intersection of sets, but XOR really corresponds to the symmetric difference. A person from a mathematics backround would be inclined to think that X^Y is the intersection while someone from a Python background might be inclined to think that it is the symmetric difference. Which is preferred: consistency with mathematical notation or consistency with Python's notation?
--Mike --~--~---------~--~----~------------~-------~--~----~ 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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---