[Tutor] def __init__(self):

Santanu Jena santanu01 at gmail.com
Tue Apr 26 05:32:04 EDT 2016


Hi Oliver.
 I have idea regarding " __init__" method/ class.but still I have confusion
on "def __init__(self): " Please share your under standing.


Thanks & Regards,
San

On Tue, Apr 26, 2016 at 2:14 PM, Oliver Bestwalter <oliver at bestwalter.de>
wrote:

> Hi Santanu,
>
> without knowing from which level of understanding you are asking, it is
> hard to say what we should answer here, so let me ask a few questions:
>
> Do you understand the concept of classes already? Maybe from other
> programming languages, or are you a complete beginner? If you are a
> beginner you might be moving a bit fast and not actually not need to know
> about the internal mechanics of classes.
>
> Did you read the documentation about classes already?
> https://docs.python.org/3.5/tutorial/classes.html
>
> Did you read the documentation about the __init__ method already?
> https://docs.python.org/3.5/reference/datamodel.html#object.__init__
>
> cheers
> Oliver
>
> On Tue, 26 Apr 2016 at 10:29 Santanu Jena <santanu01 at gmail.com> wrote:
>
>> Hi,
>>
>> Pls let me why
>> "
>> def __init__(self):
>>
>> "
>> declaration required, what's the use of this one.Pls explain  me in
>> details.
>>
>> Thanks in advance.
>> _______________________________________________
>> Tutor maillist  -  Tutor at python.org
>> To unsubscribe or change subscription options:
>> https://mail.python.org/mailman/listinfo/tutor
>>
>


More information about the Tutor mailing list