Attack a sacred Python Cow

Terry Reedy tjreedy at
Fri Jul 25 03:01:58 CEST 2008

Torsten Bronger wrote:
> Hallöchen!
  > And why does this make the implicit insertion of "self" difficult?
> I could easily write a preprocessor which does it after all.

class C():
   def f():
     a = 3

Inserting self into the arg list is trivial.  Mindlessly deciding 
correctly whether or not to insert 'self.' before 'a' is impossible when 
'a' could ambiguously be either an attribute of self or a local variable 
of f.  Or do you and/or Jordan plan to abolish local variables for methods?


More information about the Python-list mailing list