Override the '+' symbol

Fredrik Lundh fredrik at pythonware.com
Sun Sep 21 17:12:00 CEST 2008

Mr.SpOOn wrote:

> how can I override the '+' symbol (and other math symbols) so that it
> can have a new behavior when applied to some objects?

see "Emulating Numeric Types" in the language reference:



More information about the Python-list mailing list