10 points · by __tmk__ · 2y ago · 1 comment
It's a bit like the redundancy of classes that led to attrs and dataclasses. It's the obvious next step.
PEP 736 – Shorthand syntax for keyword arguments at invocation | peps.python.org
This PEP proposes to introduce syntactic sugar f(x=) for the common pattern where a keyword argument has the same name as that of the variable corresponding to its value f(x=x).
Python Enhancement Proposals (PEPs)