๐ [$] Python keyword argument auto-assignment
๐ก Newskategorie: Linux Tipps
๐ Quelle: lwn.net
A recent thread on the python-ideas mailing list explores adding a feature to Python, which is the normal fare for that forum. The problem being addressed is real, but may not be the highest-priority problem for the language on many people's lists. Function calls that have multiple keyword arguments passed from a variable of the same name (e.g. keyword=keyword) require developers to repeat themselves and can be somewhat confusing, especially to newcomers. The discussion of ways to fix it highlighted some lesser-known corners of the language, however, regardless of whether the idea will actually result in a change to Python. ...