Article 6G1PF [$] Implicit keyword arguments for Python

[$] Implicit keyword arguments for Python

by
jake
from LWN.net on (#6G1PF)
Python functions can use both positional and keyword arguments; the latterprovide a certain level of documentation for an argument and its meaning,while allowing them to be given in any order in a call. But it is oftenthe case that the name of the local variable to be passed is the same asthe keyword, which can lead to overly repetitive argument lists, at leastin some eyes. A recent proposal to shorten the syntax for calls withthese duplicate names seems to be gaining some steam-a Python EnhancementProposal (PEP) is forthcoming-though there are some who find it to be anunnecessary and unwelcome complication for the language.
External Content
Source RSS or Atom Feed
Feed Location http://lwn.net/headlines/rss
Feed Title LWN.net
Feed Link https://lwn.net/
Reply 0 comments