Somebody in this line of emails mentioned that python provides default __init__ if it its not stated in the class by the programmer. And that it is called by __new__ Then later on you corrected that.
---------- Original Message ---------- From: Alan Gauld via Tutor <tutor@python.org> To: "monik...@netzero.net" <monik...@netzero.net> Cc: tutor@python.org Subject: Re: [Tutor] __init__ Date: Wed, 31 Aug 2016 00:25:42 +0100 On 30/08/16 22:08, monik...@netzero.net wrote: > OK so somebodys remark that there is a default __init__ provided was not > correct. It depends on how you interpret default. In so far as object is the default superclass (in v3) and it provides an init then there is a default, but its not part of the language per se but of the standard object model. > What about old style classes? That's a very good question and I don't know the answer. Hopefully someone else does! Alan G _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ____________________________________________________________ The ICTM (Sponsored by Content.Ad) Diabetes Breakthrough That Will Bankrupt Diabetes Industry http://thirdpartyoffers.netzero.net/TGL3241/57c657c7d3a4157c77d5cst01duc _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor