[$] The recurring request for keyword indexing in Python

Post Syndicated from original https://lwn.net/Articles/835333/rss

Python has keyword arguments for functions that is a useful (and popular)
feature; it can make reading the code more clear and eliminate the
possibility of passing arguments in the wrong order. Python can also index
an object in various ways to refer to a subset or an aspect of the object.
Bringing the idea of keywords to indexing would provide a way to get the clarity
benefit for indexing operations; doing so has been discussed in Python
circles for a long time.
Some renewed interest, in the form
of lengthy discussions on the python-ideas mailing list and a new Python enhancement
proposal (PEP), look like they just might take keyword indexing over the finish line.