Re: Origin of 'self'

2014-03-06 Thread Marko Rauhamaa
Westley Martínez : > Thankfully you don't often need to use this in C++ like you do with > self in Python. Self pity is not attractive. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Origin of 'self'

2014-03-06 Thread Mark Lawrence
On 06/03/2014 01:56, Westley Martínez wrote: Why did C++ use this? I don't really like this. It doesn't sound right. I think it's because I have trouble saying the th sound without getting my mouth full of spit. Thankfully you don't often need to use this in C++ like you do with self in Pytho

Re: Origin of 'self'

2014-03-05 Thread Westley Martínez
Why did C++ use this? I don't really like this. It doesn't sound right. I think it's because I have trouble saying the th sound without getting my mouth full of spit. Thankfully you don't often need to use this in C++ like you do with self in Python. -- https://mail.python.org/mailman/listinfo

Re: Origin of 'self'

2014-03-04 Thread MRAB
On 2014-03-05 03:45, Rustom Mody wrote: On Tuesday, March 4, 2014 6:17:09 PM UTC+5:30, MRAB wrote: On 2014-03-04 02:09, Dennis Lee Bieber wrote: > On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez declaimed: >> I understand that in an object method the first argument in the >> object

Re: Origin of 'self'

2014-03-04 Thread Rustom Mody
On Tuesday, March 4, 2014 6:17:09 PM UTC+5:30, MRAB wrote: > On 2014-03-04 02:09, Dennis Lee Bieber wrote: > > On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez declaimed: > >> I understand that in an object method the first argument in the > >> object itself, called self. However, it does

Re: Origin of 'self'

2014-03-04 Thread MRAB
On 2014-03-04 14:27, Steven D'Aprano wrote: On Tue, 04 Mar 2014 12:47:09 +, MRAB wrote: In AppleScript a script can refer to the title of a window as "title of window" or "window's title", and it can refer to the title of its own window as "title of window of me" or "me's window's title". C

Re: Origin of 'self'

2014-03-04 Thread Steven D'Aprano
On Tue, 04 Mar 2014 12:47:09 +, MRAB wrote: > In AppleScript a script can refer to the title of a window as "title of > window" or "window's title", and it can refer to the title of its own > window as "title of window of me" or "me's window's title". Consistent, > yes, but bad English. > > T

Re: Origin of 'self'

2014-03-04 Thread MRAB
On 2014-03-04 02:09, Dennis Lee Bieber wrote: On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez declaimed the following: I understand that in an object method the first argument in the object itself, called self. However, it doesn't have to be called self, and can be called anything.

Re: Origin of 'self'

2014-03-03 Thread Roy Smith
In article , Dennis Lee Bieber wrote: > On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez > declaimed the following: > > >I understand that in an object method the first argument in the object > >itself, called self. However, it doesn't have to be called self, and can be > >called a

Re: Origin of 'self'

2014-03-03 Thread Chris Angelico
On Tue, Mar 4, 2014 at 1:09 PM, Dennis Lee Bieber wrote: > On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez > declaimed the following: > >>I understand that in an object method the first argument in the object >>itself, called self. However, it doesn't have to be called self, and can b

Re: Origin of 'self'

2014-03-03 Thread Terry Reedy
On 3/3/2014 1:16 AM, Westley Martínez wrote: I understand that in an object method the first argument in the object itself, called self. However, it doesn't have to be called self, and can be called anything. So my question is why is it called self and not this like from C++ and Java. It's kin

Re: Origin of 'self'

2014-03-02 Thread Ian Kelly
On Sun, Mar 2, 2014 at 11:16 PM, Westley Martínez wrote: > I understand that in an object method the first argument in the object > itself, called self. However, it doesn't have to be called self, and can be > called anything. So my question is why is it called self and not this like > from C

Re: Origin of 'self'

2014-03-02 Thread Steven D'Aprano
On Sun, 02 Mar 2014 22:16:31 -0800, Westley Martínez wrote: > I understand that in an object method the first argument in the object > itself, called self. However, it doesn't have to be called self, and > can be called anything. So my question is why is it called self and not > this like from C

Origin of 'self'

2014-03-02 Thread Westley Martínez
I understand that in an object method the first argument in the object itself, called self. However, it doesn't have to be called self, and can be called anything. So my question is why is it called self and not this like from C++ and Java. It's kind of a silly question, but one that I'm curi