Attack a sacred Python Cow
Terry Reedy
tjreedy at udel.edu
Thu Jul 24 21:01:58 EDT 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?
tjr
More information about the Python-list
mailing list