I don't like the OO part of python. In particular the "self" keyword everywhere.

Rustom Mody rustompmody at gmail.com
Thu Jun 11 12:39:23 EDT 2015


On Thursday, June 11, 2015 at 4:49:59 PM UTC+5:30, Skybuck Flying wrote:
> Hello,
> 
> I don't like the object orientated part of Python.
> 
> The idea/prospect of having to write "self" everywhere... seems very 
> horrorific and a huge time waster.
> 
> (Perhaps the module thing of python might help in future not sure about 
> that).
> 
> What are your thoughts on the "self" thing/requirement.
> 
> I only want replies from expert programmers, cause we need a language for 
> expert programmers...
> 
> Not noobies that need to be hand-held...
> 
> Personally I think I could do just fine with the "self" keyword everywhere.
> 
> So question is... can the python interpreter/compiler be written in such a 
> way that self can be left out ?
> 
> In other words: Is there any hope... that this part of the language will be 
> cleaned up some day ?
> 
> Are there any tricks to get rid of it ?
> 
> Maybe "white" like in Delphi ?
> 
> I haven't written much OO code yet in Python... and don't plan on doing it 
> too...
> 
> Cause it looks hellish confusing... and clouded/clodded.
> 
> I think I have better things to do then to insert "self" everywhere...
> 
> It's almost like "self" masturbation  LOL.
> 
> Bye,
>   Skybuck =D

I suggest you disentangle your question/crib along 3 axes:

1. Specific grumble about a specific feature -- in this case 'explicit-self'
2. General discomfort with a style/paradigm -- OO

2 itself can be bifurcated along 2 axes
2a. Hard when learning
2b. Painful/stupid for serious/real-world usage

That 2a and 2b were quite separate was well understood in the 70s and
80s when Pascal was widely known.  Today it seems increasingly
forgotten.  eg all the OOP texts that I studied wax endlessly
on circles and ellipses and rectangles and squares and other such
wonders of God's (or OO's) creations.
Today http://en.wikipedia.org/wiki/Circle-ellipse_problem suggests its not
so neat (or useful) as the OO aficionados imagine




More information about the Python-list mailing list