Perhaps I am just dumb

Steve Holden sholden at holdenweb.com
Mon Feb 11 07:14:12 EST 2002


"wooks" <wookiz at hotmail.com> wrote in message
news:8852d33c.0202110117.374f062 at posting.google.com...
[Quinn explains polymorphism]
> ... if I get magic methods right, they are special functions which
> if present enable the object to apply a unique interpretation of a
> python operator.
> So + has standard behaviour but will  adopt whatever is specified in
> the __add__ function if one is present for the class.
>
> Yes?

Correct

by-jove-he's-got-it-ly y'rs  - steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Author, Python Web Programming: http://pydish.holdenweb.com/pwp/

"This is Python.  We don't care much about theory, except where it
intersects with useful practice."  Aahz Maruch on c.l.py







More information about the Python-list mailing list