Re: explicit self revisited

2006-11-17 Thread baalbek
Peter Maas wrote: > No magic. Just a dot. But perhaps a dot is too tiny. We could take JUST_ME > or ME_AND_BOBBY_MCGEE instead, of course as a reserved keyword followed > by a > dot ;) Why a dot, and not a @, like in Ruby and Perl? I think a dot is a particular bad idea, not the least due to po

Re: explicit self revisited

2006-11-13 Thread Peter Maas
Steven D'Aprano schrieb: > Implicit self will never be used for Python, because it is redundant so > long as there is a need for explicit self, and there is a need for > explicit self because there are a number of basic, dare I say > *fundamental* programming techniques that require an explicit sel

Re: explicit self revisited

2006-11-13 Thread Fredrik Lundh
Peter Maas wrote: > But at least I learned something: a heated debate isn't bound to become an > endless thread if the OP abstains from answering idiot replies ;) trolling is trolling even if you use smilies. I'm sure you can find a way to actually *contribute* to Python if you really want to..

Re: explicit self revisited

2006-11-13 Thread Peter Maas
Michele Simionato wrote: > Peter Maas wrote: >> All these reasons are valid and retained by the following suggestion: let >> self be represented by the dot > > This suggestion has been discussed in the past (I remember having the > same idea myself when I first learned Python). But at the end I b

Re: explicit self revisited

2006-11-13 Thread Christophe
Simon Brunning a écrit : > On 11/13/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >> >> > I suppose that in his view, language advocacy is a zero-sum game, so >> > positive comments about Python can be considered as FUD against his own >> > project. He's even invented his own del.icio.us tag for th

Re: explicit self revisited

2006-11-13 Thread Simon Brunning
On 11/13/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > I suppose that in his view, language advocacy is a zero-sum game, so > > positive comments about Python can be considered as FUD against his own > > project. He's even invented his own del.icio.us tag for this purpose: > > > > http:/

Re: Fredrik Lundh [was "Re: explicit self revisited"]

2006-11-13 Thread fynali
> You idiot. Putting the word "official" in front of something doesn't > mean it can't be FUD. Especially when it is written by people such as > yourself. Have you not paid attention to anything happening in > politics around the world during your lifetime? Ridiculous boo-llshit! -- http://ma

Re: explicit self revisited

2006-11-13 Thread Hendrik van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: > Especially since there is a comefrom *breaks into song* : "Oh Susannah, now don't you cry for me..." -- http://mail.python.org/mailman/listinfo/python-list

Re: explicit self revisited

2006-11-13 Thread Steve Holden
Doug wrote: [...] > The explicit self is there simply because OOP was tacked onto python as > an afterthought. No, it was added in such a way that Python would be useful as a procedural as well as an OO language. I don't know what's got into me. can't-normally-say-boo-to-a-goose-ly y'rs - stev

Re: explicit self revisited

2006-11-13 Thread Michele Simionato
Peter Maas wrote: > The Python FAQ 1.4.5 gives 3 reasons for explicit self (condensed version): > > 1. Instance variables can be easily distinguished from local variables. > > 2. A method from a particular class can be called as >baseclass.methodname(self, ). > > 3. No need for declarations to

Re: explicit self revisited

2006-11-12 Thread Fredrik Lundh
> I suppose that in his view, language advocacy is a zero-sum game, so > positive comments about Python can be considered as FUD against his own > project. He's even invented his own del.icio.us tag for this purpose: > > http://del.icio.us/tag/pythonfud now at: http://del.icio.us/t

Re: explicit self revisited

2006-11-12 Thread Fredrik Lundh
Carsten Haese wrote: > According to that definition, FUD is "a sales or marketing strategy of > disseminating negative (and vague) information on a competitor's > product." Doug "cheddar cheese" Holton (who has a long history of posting seriously confused and/or abusive stuff under a number of a

Re: Fredrik Lundh [was "Re: explicit self revisited"]

2006-11-12 Thread Carsten Haese
On Sat, 2006-11-11 at 23:14 -0800, Doug wrote: > Fredrik Lundh wrote: > > Doug wrote: > >> > >> Fredrik Lundh wrote: > >>> Fredrik Lundh wrote: > >>> > cannot all you clueless trolls who cannot think of a single useful thing > >>> > to contribute to Python start your own newsgroup? > >> > >>> and b

Re: Fredrik Lundh [was "Re: explicit self revisited"]

2006-11-12 Thread Alan G Isaac
On Sun, 12 Nov 2006 02:14:32 -0500, Doug <[EMAIL PROTECTED]> wrote: > I was going to link to > a definition of FUD to show I really meant to use that term. Oooh. If you had just mentioned your dyslogia, it would have saved us all some time. Thanks! Alan -- http://mail.python.org/mailman/listinfo/

Re: explicit self revisited

2006-11-12 Thread Duncan Booth
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sun, 12 Nov 2006 01:55:35 +0100, Fredrik Lundh ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> >> ah, good point. I've updated the FAQ. >> > Ah, but do we dare update the Wikipedia link to include Python as a > lan

Fredrik Lundh [was "Re: explicit self revisited"]

2006-11-12 Thread Doug
Fredrik Lundh wrote: > Doug wrote: >> >> Fredrik Lundh wrote: >>> Fredrik Lundh wrote: >>> > cannot all you clueless trolls who cannot think of a single useful thing >>> > to contribute to Python start your own newsgroup? >> >>> and before anyone complains; please note that they're working through

Re: explicit self revisited

2006-11-11 Thread Steven D'Aprano
On Sat, 11 Nov 2006 22:39:37 +0100, Peter Maas wrote: [snip] > let self be represented by the dot, e.g. replace > > class someTest(unittest.TestCase): > def setUp(self): > self.ly = yList() > self.m1 = self.ly[0].message > self.m2 = self.ly[1].message > self.m3

Re: explicit self revisited

2006-11-11 Thread Fredrik Lundh
Dennis Lee Bieber wrote: >> one article at a time. who's going to be the first one to argue that >> Python needs a goto statement ? >> > Especially since there is a comefrom ah, good point. I've updated the FAQ. -- http://mail.python.org/mailman/listinfo/python-list

Re: explicit self revisited

2006-11-11 Thread Steven D'Aprano
On Sat, 11 Nov 2006 18:09:59 -0600, skip wrote: > > Doug> The explicit self is there simply because OOP was tacked onto > Doug> python as an afterthought. > > Got a reference to support that claim? Of course not, since it is a classic example of trolling. By comparison, the way I read

Re: explicit self revisited

2006-11-11 Thread skip
Doug> The explicit self is there simply because OOP was tacked onto Doug> python as an afterthought. Got a reference to support that claim? Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: explicit self revisited

2006-11-11 Thread Fredrik Lundh
Doug (Holton?) wrote: >> and before anyone complains; please note that they're working through >> >> http://www.effbot.org/pyfaq/design-index.htm > > That site is a bunch of FUD - the official FAQ is a bunch of FUD? are you sure you know what FUD means? -- http://mail.python.org/mailma

Re: explicit self revisited

2006-11-11 Thread Doug
Fredrik Lundh wrote: > Fredrik Lundh wrote: > > cannot all you clueless trolls who cannot think of a single useful thing > > to contribute to Python start your own newsgroup? > > and before anyone complains; please note that they're working through > > http://www.effbot.org/pyfaq/design-index

Re: explicit self revisited

2006-11-11 Thread Fredrik Lundh
> cannot all you clueless trolls who cannot think of a single useful thing > to contribute to Python start your own newsgroup? and before anyone complains; please note that they're working through http://www.effbot.org/pyfaq/design-index.htm one article at a time. who's going to be the f

Re: explicit self revisited

2006-11-11 Thread Fredrik Lundh
Peter Maas wrote: > What do you think? cannot all you clueless trolls who cannot think of a single useful thing to contribute to Python start your own newsgroup? -- http://mail.python.org/mailman/listinfo/python-list

explicit self revisited

2006-11-11 Thread Peter Maas
The Python FAQ 1.4.5 gives 3 reasons for explicit self (condensed version): 1. Instance variables can be easily distinguished from local variables. 2. A method from a particular class can be called as baseclass.methodname(self, ). 3. No need for declarations to disambiguate assignments to loc