is it possible to overload operator "^"?

Diez B. Roggisch deets at nospam.web.de
Sat Aug 8 05:06:13 EDT 2009


dmitrey schrieb:
> hi all,
> is it possible to overload operator "^"? (AFAIK __pow__ overloads **
> instead of ^)
> Thank you in advance, D.

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