is it possible to overload operator "^"?

dmitrey dmitrey.kroshko at scipy.org
Sat Aug 8 06:04:11 EDT 2009


> the operator precedence will seem wrong
So, are there any ways to change operator precedence (for my class)?

To Diez:
yes, but I haven't paid attention to xor. BTW the url is currently
unavailable (Network Timeout. The server at docs.python.org is taking
too long to respond.).

On Aug 8, 12:06 pm, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> Did you read the link I gave you for your last question?
> It shows __xor__ as special method.
> Diez



More information about the Python-list mailing list