Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16986

Verbose and flexible args and kwargs syntax

Date 2011-12-11 15:58 +0100
From Eelco Hoogendoorn <hoogendoorn.eelco@gmail.com>
Subject Verbose and flexible args and kwargs syntax
Newsgroups comp.lang.python
Message-ID <mailman.3514.1323615502.27778.python-list@python.org> (permalink)

Show all headers | View raw


As for syntax; what about coopting/integrating with the function 
annotation syntax?

so:

def func(args: list, kwargs: attrdict)
and correspondingly in the function call?

a, b:tuple = someiterable?

I guess a rule that interprets every function argument annotated as a 
subclass of list or dict as a special case would severely restrict its 
intended use though...

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Verbose and flexible args and kwargs syntax Eelco Hoogendoorn <hoogendoorn.eelco@gmail.com> - 2011-12-11 15:58 +0100

csiph-web