[Tutor] __init__
monikajg at netzero.net
monikajg at netzero.net
Wed Aug 31 00:05:26 EDT 2016
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 at python.org>
To: "monikajg at netzero.net" <monikajg at netzero.net>
Cc: tutor at python.org
Subject: Re: [Tutor] __init__
Date: Wed, 31 Aug 2016 00:25:42 +0100
On 30/08/16 22:08, monikajg at 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 at 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
More information about the Tutor
mailing list