On Fri, 14 Aug 2020 at 13:12, Jonathan Fine jfine2358@gmail.com wrote:
Anyone who is experimenting with keyword keys would, I think, appreciate having something they can use straight away. Thus, I think, any use case for PEP 472 is also a use case for the general keyword class I'm suggesting. No use cases for PEP 472 would of course be fatal.
When experimenting, I routinely write throwaway classes and functions like
def f(*args, **kw): print(f"In f, {args=} {kw=}")
I don't see why writing
class A: def __getitem__(self, *args, **kw): print(f"Getting {args=}, {kw=}")
would be any more onerous. A stdlib class that used the new syntax should stand on its own merits, not as "something people can use to experiment with".
Paul