Too many 'self' in python.That's a big flaw in this language.
faulkner891 at gmail.com
Wed Jun 27 14:11:34 CEST 2007
On Jun 27, 7:02 am, "hide1... at gmail.com" <hide1... at gmail.com> wrote:
> I'm currently using Python. I find that a instance variable must
> confined with self,
> for example:
> class a:
> def __init__(self):
> def bb(self):
> print self.aa # See .if in c++,I could use aa to change that
> That's a big inconvenience in coding ,especially when you have lot of
> If you method need 10 variables ,you have to type "self" for 10 times
> and that also makes your variable longer.
> >From My point,I think this only help python interpreter to deside
> where to look for.
> Is there anyone know's how to make the interpreter find instance name
> space first?
> Or any way to make programmer's life easier?
More information about the Python-list