Self Nanny

Tres Seaver tseaver at starbase.neosoft.com
Tue Mar 7 09:41:51 EST 2000


In article <ltu2ijfsay.fsf at asfast.com>, Lloyd Zusman  <ljz at asfast.com> wrote:
>Gaetan Corneau <corg at copernic.com> writes:
>
>> OK, I didn't make myself clear :)
>
>Yes you have, at least for me.
>
>
>> 1) *I* don't mind having to specify "self" in method definitions
>> 
>> 2) *I* don't mind having to write "self.Something"
>> 
>> 3) BUT I think that it would be *nice* not to have to specify "self" in
>> method definitions, and it would certainly help A LOT of newbies
>> 
>> 4) if possible at all, not having to write "self.Something" would be cool,
>> but not as important as #3
>> 
>> And don't tell me #3 can't (technically speaking) be done :)
>
>Of course #3 can be done (technically speaking).  And in return for it
>getting done, would you volunteer to donate your personal time to
>change all the existing lines of Python code in the world that this
>change would break?
>
>Or barring that, would you be willing to pay for the time of all the
>others who would have to do this work?
>
>
>> If I'm mistaken, then OK, only C++ programmers forget to specify
>> "self" as first parameter for a method, I won't insist, you know. If
>> you really don't care about C++ programmers (but remember, there are
>> quite a few), fine.
>
>This is not an issue about "caring" about C++ programmers.  I am a C++
>programmer, and literally hundreds of my colleagues over the past
>decade or so have been C++ programmers.  Many of these people have
>tried Python.  And *none* of them have ever even made a complaint
>about the explicit "self" of Python.  You are the first C++ programmer
>I have encountered who has ever raised this as an issue.  That's one
>out of hundreds of people.

This is moot, given that changes to a feature which *does* have a
demonstrable, vocal minority opposed to it (syntactically-significant
indentation) is no more likely to change than Guido is to spell his last
name with a capital 'V'.

Which-syllable-of-no-isn't-clear?'ly

Tres.
-- 
---------------------------------------------------------------
Tres Seaver           tseaver at palladion.com       713-523-6582
Palladion Software    http://www.palladion.com



More information about the Python-list mailing list