[Python-ideas] keyword arguments everywhere (stdlib) - issue8706

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Mar 5 22:30:47 CET 2012

Steven D'Aprano wrote:

> Please do not give syntactic meaning to [parameter], unless it matches 
> the existing convention for optional parameters.

Why should it have to do that? We already have a syntax for
optional parameters, and there is no reason for a reader to
think that a new piece of syntax is simply duplicating existing

> Besides, positional-only arguments are not only of interest to the 
> implementation, they are part of the API.

The fact that a parameter exists in that slot is part of the
API, but the *name* of it is not. This is reflected in the fact
that the comma is outside the brackets and the name is inside.


More information about the Python-ideas mailing list