Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'dict': 0.09; 'severely': 0.09; 'subclass': 0.09; 'though...': 0.09; 'def': 0.13; 'argument': 0.15; 'call?': 0.16; 'interprets': 0.16; 'received:192.168.0.11': 0.16; 'subject:syntax': 0.16; 'guess': 0.26; 'function': 0.27; 'list': 0.32; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.34; 'rule': 0.34; 'restrict': 0.34; 'list,': 0.37; 'received:192': 0.37; 'received:google.com': 0.37; 'received:192.168.0': 0.38; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'received:192.168': 0.40; 'special': 0.68; 'so:': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=9l39Id6YmD0SJ1WN4Mq8uPiVK0HKCiL90DIdN4VailQ=; b=ABNSU4o79+M2PxoW8zVCPd4FYvRUSsfx7UTSlQdvKAZL4S3xi6ooBCmDliehkFGLyR MyGwxEf9DZ1jl9bKqIvPL2n5vTxVgJLJuBR+UHlPLZSbc10yE1HOzOLufDeiXkByYqts ufc8tcUqqJtohoCkMnw7UCvVtso2gTqF/I6e8= Date: Sun, 11 Dec 2011 15:58:18 +0100 From: Eelco Hoogendoorn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: Verbose and flexible args and kwargs syntax Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323615502 news.xs4all.nl 6857 [2001:888:2000:d::a6]:35256 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16986 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...