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:

     http://www.python.org/doc/ref/numeric-types.html

</F>




More information about the Python-list mailing list