
May 7, 2022
11:38 a.m.
On 5/7/22 06:24, Chris Angelico wrote:
On Sat, 7 May 2022 at 23:15, Stephen J. Turnbull wrote:
def foo(self, x, y): x.y = y
is not a pattern I can recall ever seeing
I'd define it very simply. For positional args, these should be exactly equivalent:
def func(self, x, x.y): ...
def func(*args): self, x, x.y = args ...
Simple or not, I don't think Python needs that much magic. -- ~Ethan~