On 08Jan2016 00:18, ALAN GAULD <alan.ga...@btinternet.com> wrote:
My only point of difference here, I think, is the definition
of a constructor. I consider a constructor to be the creator
of object instances, which makes the only default Python
constructor the __new__() since the __init__() is only an
initializer.

Me too. I was deliberately avoiding the term "constructor", then let myself get sucked into using it just now because you get a new instance of your target class out of the factory function/method. But they are better thought of as wrappers for the class' real constructor.

For this sloppiness, my apologies,
Cameron Simpson <c...@zip.com.au>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to