Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread wesley chun
on a related topic, if you're concerned about security, esp. of your instance attributes, new-style classes offer you significantly more control over them using descriptors (including properties [and to a lesser extent, slots]). there is plenty of docs available on those, so i'll defer describing t

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Asrarahmed Kadri
Chris, you are right. He (Alan) hits the bull's eye, always !!   Cheers...   Asrarahmed  On 10/25/06, Chris Hengge <[EMAIL PROTECTED]> wrote: I dont know about the rest of you, but this thread posting from Alan cleared up some fuzzyness I've had about classes. /me is happier using this. instead of

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Asrarahmed Kadri
  Thanks a lot for explanation.   Regards, Asrarahmed  On 10/25/06, Alan Gauld <[EMAIL PROTECTED]> wrote: "Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote > Why is it necessary to explicity use self argument in the class> functionsBecause Guido made it that way. :-)But he did it for good reasons which

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Chris Hengge
I dont know about the rest of you, but this thread posting from Alan cleared up some fuzzyness I've had about classes. /me is happier using this. instead of self. =DGreat post! On 10/25/06, Alan Gauld <[EMAIL PROTECTED]> wrote: "Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote> Why is it necessary to ex

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Alan Gauld
"Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote > Why is it necessary to explicity use self argument in the class > functions Because Guido made it that way. :-) But he did it for good reasons which others have pointed out already. Although languages like C++ and Java use implicit object reference

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Andrei
Asrarahmed Kadri googlemail.com> writes: > the use of 'self' keyword really confuses me. I see how it can annoy you, but not how it can *confuse* you - if anything, "self" removes any confusion about whether you're looking at a local variable or an object property. By the way, the use of specia

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread euoar
Asrarahmed Kadri escribió: > > > Folks... > > Please dont take it in a wrong sense. But I have a point to make > regarding OOP and the way it is implemented in Python. > > Why is it necessary to explicity use self argument in the class > functions ?? I feel the language/interpreter shoul

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Simon Brunning
On 10/25/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > Why is it necessary to explicity use self argument in the class functions > ?? I feel the language/interpreter should figure out which object has called > the function? Isnt it ? (the use of 'self' keyword really confuses me. and > to make

[Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread Asrarahmed Kadri
    Folks...   Please dont take it in a wrong sense. But I have a point to make regarding OOP and the way it is implemented in Python.    Why is it necessary to explicity use self argument in the class functions ?? I feel the language/interpreter should figure out which object has called the functi