On Fri, 14 Aug 2020 at 13:12, Jonathan Fine <[email protected]> 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
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/H7KIXVO3ZB45ANYJM5U2CSNSPEFPBHT5/
Code of Conduct: http://python.org/psf/codeofconduct/