[Python-ideas] Short form for keyword arguments and dicts

Anders Hovmöller boxed at killingar.net
Tue Jun 25 08:05:53 CEST 2013



> I cannot think of any other feature, in any other language, where changing a variable's name requires you to change the syntax you can use on it.

Let me give you an example then! OCaml has exactly the feature I propose. It looks like this:

foo ~bar

And to be clear is the same as the python

foo(bar=bar)


More information about the Python-ideas mailing list