[Python-3000] Type Expressions

Guido van Rossum guido at python.org
Thu Apr 20 11:23:33 CEST 2006


On 4/20/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Some wilder ideas for keyword-only arguments:
>
>    def spam(a, b, c, {d, e, f=x}):
>      # d, e are mandatory keyword-only
>      # f is optional keyword-only

IMO anything using any kind of nested brackets inside the argument
list is doomed. Such syntax is too close to resembling a single
argument with a complex sub-structure, even if there's a prefix
operator.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list