Override the '+' symbol

Fredrik Lundh fredrik at pythonware.com
Sun Sep 21 11:12:00 EDT 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