(original) (raw)
Hello,
i know this has been discusses very much, i'm sorry,
but i can't help it. In a nutshell, the proposal is as
follows:
1\. Self remains explicit (like it is now).
2\. if a class is a subclass of a special class, e.g.
named 'selfless', the self parameter is not required
and a special variable, named 'this' is provided.
For example:
class Foo (selfless):
def \_\_init\_\_ (x, y):
this.x = x
...
A patch for 3.0b3 implementing this can be found at
http://www-lehre.inf.uos.de/\~kklimek/misc/python\_slp\_8.diff
regards,
Kilian Klimek
i know this has been discusses very much, i'm sorry,
but i can't help it. In a nutshell, the proposal is as
follows:
1\. Self remains explicit (like it is now).
2\. if a class is a subclass of a special class, e.g.
named 'selfless', the self parameter is not required
and a special variable, named 'this' is provided.
For example:
class Foo (selfless):
def \_\_init\_\_ (x, y):
this.x = x
...
A patch for 3.0b3 implementing this can be found at
http://www-lehre.inf.uos.de/\~kklimek/misc/python\_slp\_8.diff
regards,
Kilian Klimek