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


Groups > comp.lang.python > #16986 > unrolled thread

Verbose and flexible args and kwargs syntax

Started byEelco Hoogendoorn <hoogendoorn.eelco@gmail.com>
First post2011-12-11 15:58 +0100
Last post2011-12-11 15:58 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#16986 — Verbose and flexible args and kwargs syntax

FromEelco Hoogendoorn <hoogendoorn.eelco@gmail.com>
Date2011-12-11 15:58 +0100
SubjectVerbose and flexible args and kwargs syntax
Message-ID<mailman.3514.1323615502.27778.python-list@python.org>
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...

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web