Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16986 > unrolled thread
| Started by | Eelco Hoogendoorn <hoogendoorn.eelco@gmail.com> |
|---|---|
| First post | 2011-12-11 15:58 +0100 |
| Last post | 2011-12-11 15:58 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Verbose and flexible args and kwargs syntax Eelco Hoogendoorn <hoogendoorn.eelco@gmail.com> - 2011-12-11 15:58 +0100
| From | Eelco Hoogendoorn <hoogendoorn.eelco@gmail.com> |
|---|---|
| Date | 2011-12-11 15:58 +0100 |
| Subject | Verbose 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...
Back to top | Article view | comp.lang.python
csiph-web