On Mon, Aug 3, 2020 at 1:10 PM Jonathan Fine <jfine2358@gmail.com> wrote:
Some news. I've just published https://pypi.org/project/kwkey/0.0.1/.

This package is about PEP 472 -- Support for indexing with keyword arguments
See: https://www.python.org/dev/peps/pep-0472/

As a result, I think we're now in a good position to try this idea out, using present day Python. This includes building some clients that can use the new feature, should it become available. It also includes exploring the design of the API.

The crucial idea is writing
    >>> from kwkeys import o
    >>> d[o(1, 2, a=3, b=4)]
as a stopgap, until
    >>> d[1, 2, a=3, b=4]
is available.

If you're interested, please do try it out.

On 18 July I wrote that by the end of July I would implement and publish general purpose code for the NOW part of these goals
See: https://mail.python.org/archives/list/python-ideas@python.org/message/YW3JXKKSNIFII7PDNTYEOKUR3FIAFINW/

Earlier today, 3 days overdue, I fulfilled my commitment. I hope it helps some of you, and does no harm to others.

Thanks Jonathan Fine, I do not think anyone is going to begrudge your being "3 days overdue".

I'm really interested in this and it's very helpful that you included two versions of the proposed API for people to try out: the jfine version (with the kw object) and the stevedaprano version (with kwd arguments passed directly to the dunder methods).

I hope to make time to fiddle around with both APIs-- if I do I'll be sure to provide feedback.


"I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler