Dan Sommers wrote:
> Without thinking it all the way through, I suppose these:
>
> def method_1(self, *self.l):
> pass
> def method_2(self, **self.d):
> pass
>
> could act as if they were these:
>
> def method_1(self, *args):
> self.l = args
> del args
> def method_2(self, **kw):
> self.d = kw
> del kw
I still think it's too specialized. What would, hypothetically, this do?
class Bar: pass
class Foo:
x = Bar()
def method_1(self, x.y):
pass
It's hard to explain that you can autoassign self.y but not x.y.
Reinhold
--
http://mail.python.org/mailman/listinfo/python-list