Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread Robert Dailey
On Wed, Jul 30, 2008 at 2:48 PM, Patrick Mullen <[EMAIL PROTECTED]>wrote: > Well, the linked thread gives many reasons, but as mentioned it is a > flamewar thread. Philosophically python is not an "object oriented" > language per say, it has an object system, a not bolted on one I might add, > bu

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread Robert Dailey
On Wed, Jul 30, 2008 at 2:46 PM, Matthew Fitzgibbons <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > >> On Wed, Jul 30, 2008 at 1:03 PM, Brett g Porter <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote: >> >>Robert Dailey wrote: >> >>This is an example of a response I'm looking for: >>

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread Patrick Mullen
On Wed, Jul 30, 2008 at 12:27 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > > Given the code samples above, is there any technical reason why this cannot > be done? Thanks for the input guys, and thanks more over for keeping this > easy-going. > > -- > http://mail.python.org/mailman/listinfo/pyth

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread Robert Dailey
On Wed, Jul 30, 2008 at 1:03 PM, Brett g Porter <[EMAIL PROTECTED]> wrote: > Robert Dailey wrote: > > This is an example of a response I'm looking for: >> "The self parameter is required because the parser is a bit old and needs >> to know the exact object you're referencing" >> >> This is _not_

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread bearophileHUGS
Brett g Porter: > Fredrik Lundh has written a very clear explanation of this > athttp://effbot.org/pyfaq/why-must-self-be-used-explicitly-in-method-de... Today lot of people know that Ruby exists, so such FAQ explanation must explain why Python doesn't use a shorter syntax like for example @foo

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread John Nagle
Matthew Fitzgibbons wrote: Robert Dailey wrote: I've always been curious (more so than annoyed) as to why one must explicitly specify a "self" parameter for member functions in a class in Python. This seems very "C" like to me, since to do object oriented programming in C you must devote one p

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread Brett g Porter
Robert Dailey wrote: This is an example of a response I'm looking for: "The self parameter is required because the parser is a bit old and needs to know the exact object you're referencing" This is _not_ an example of what I'm looking for: "Specifying self is a great mysterious thing that we

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread Matthew Fitzgibbons
Robert Dailey wrote: Hi, I want to point out first of all that I'm not as familiar with Python as I should be, and for that reason I question a lot of things because I'm mainly a C++ programmer and I'm used to certain conveniences. Having said that... I've always been curious (more so than

Reasoning behind 'self' parameter in classes?

2008-07-30 Thread Robert Dailey
Hi, I want to point out first of all that I'm not as familiar with Python as I should be, and for that reason I question a lot of things because I'm mainly a C++ programmer and I'm used to certain conveniences. Having said that... I've always been curious (more so than annoyed) as to why one must