[Tutor] The trap of the year

Karim karim.liateni at free.fr
Tue Jan 25 23:25:02 CET 2011


Yes you're right.
But the class and instance thing made me believe the context would be 
different.
Error of judgment.

Regards
Karim

On 01/25/2011 10:57 PM, Corey Richardson wrote:
> On 01/25/2011 04:28 PM, Karim wrote:
>> Hello Bob,
>>
>> I know this fact for function but in this case this is not a function
>> but a constructor method of a class.
> To be pedantic, a method _is_ a function, just under the umbrella of a
> class, with it's parent object being passed to it.
> ~Corey
>
>> The impact is not the same because all instance share the same argument
>> parameter.This a kind
>> of singleton argument :-) . I believed that the constructor will create
>> each time a new argument init.
>>
>>
>> Regards
>> Karim
>>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list