Multiple inheritance, super() and changing signature

Michael Selik michael.selik at gmail.com
Thu Jun 2 10:44:49 EDT 2016


On Thu, Jun 2, 2016 at 4:26 AM Lawrence D’Oliveiro <lawrencedo99 at gmail.com>
wrote:

> On Wednesday, June 1, 2016 at 8:02:14 AM UTC+12, Ben Finney wrote:
> > (Note that ‘__init__’ is not a constructor, because it operates on the
> > *already constructed* instance, and does not return anything.
>
> Believe it or not, that *is* what “constructor” means in every OO
> language. Technically it should be called the “initializer”, but
> “constructor” is the accepted term for the special method that is called to
> initialize a newly-allocated class instance.
>

Perhaps a Pythonista may have different jargon? Since we have two different
words (initializer, constructor), we may as well give them different
meanings so that they are maximally useful in conversation.



More information about the Python-list mailing list