Overloaded Operators allowed???

Jeremy Hylton jeremy at beopen.com
Wed Jul 5 21:40:43 EDT 2000


"Jeff" <no_spam at umich.edu> writes:

> Well yes, that is true, but say I wanted to overload "/" to operate on a
> class such as "cookies".  Can this be done?
> 

The Language References lists all the possibilities for operator
overloading: 

http://www.python.org/doc/current/ref/specialnames.html

--Jeremy Hylton, <http://www.python.org/~jeremy/>



More information about the Python-list mailing list