[Python-3000] Type Expressions
Guido van Rossum
guido at python.org
Fri Apr 21 18:02:59 CEST 2006
On 4/21/06, Mark Russell <mark.russell at zen.co.uk> wrote:
> On 20 Apr 2006, at 10:23, Guido van Rossum wrote:
> > IMO anything using any kind of nested brackets inside the argument
> > list is doomed.
>
> Another wild thought:
>
> def foo(a, b, @keyword_only c, d):
> pass
>
> Actually that one could go in 2.X - it's currently a syntax error.
To prevent more abominations like this, let me pronounce that I now
like the single-star syntax:
def foo(a, b, *, x=1, y=2): ...
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list