How do I learn operator overriding?

Terry Reedy tjreedy at udel.edu
Fri Sep 19 21:42:04 CEST 2003


<python at sarcastic-horse.com> wrote in message
news:mailman.1063995987.26144.python-list at python.org...
> The only problem is that I have no idea how to override operators in
> python.  Can anyone give me a few trivial examples of how it is
done?

Look up 3.3 Special method names & 3.3.6 Emulating numeric types in
ref manual.

> And, on a completely unrelated note, I am getting a truly amazing
amount
> of spam today.  Anyone else?

As in over 1000 fake Microsoft Updates with virus attachments?

Terry J. Reedy






More information about the Python-list mailing list