Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'args': 0.07; 'odd': 0.07; 'arguments': 0.09; 'definition,': 0.09; 'seemed': 0.09; 'subtle': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'bugs.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "function's": 0.16; 'iterable': 0.16; 'tuple': 0.16; 'tuple,': 0.16; 'unpack': 0.16; 'unpacking': 0.16; 'wrote:': 0.18; 'dependent': 0.19; 'cc:addr:python.org': 0.22; '31,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'cases': 0.33; 'fri,': 0.33; 'could': 0.34; "can't": 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'anything': 0.39; 'ian': 0.60; 'length': 0.61; 'lack': 0.78; 'subject:True': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=txXQbIwq3SCT4/8Gs74rhzKiJFM7WC8vAwjVvjNQB6U=; b=l5nzaJDKlh+0CZPRYWYrjHP43agPljeO//7gQGuHmq8zfLJh+a58rWIh2Yd29Uv3/2 9f2HxJqAwltsLNHDLVp1t0grJejctLWn563dRfr+e2vK4CkOb3Xt1fKOlPoMxj0glMKh pTRrn7nrEuPX4Gsf0eM9VroYsfUlphRKXcslPtt7R1kY+fPH0nNTX2Xu9XiMcthVHNlv Ciz2pBHVxQxe51B3tQJ+Y0aCke4iNAVDgAfv7X9bDug6Rj0y9nqy/q0xCJVmuBZwJh1A 2cnz+g3Z7xCjwynvNi8EAtV4kfsjlqNeWUxWLRSdWYr+87HwuzyjHEyLZB05aV3vmCg6 5/DA== MIME-Version: 1.0 X-Received: by 10.68.133.6 with SMTP id oy6mr16630437pbb.153.1391117516828; Thu, 30 Jan 2014 13:31:56 -0800 (PST) In-Reply-To: References: <99b0aa22-5fb3-460a-a080-dacb1c0f2fda@googlegroups.com> Date: Fri, 31 Jan 2014 08:31:56 +1100 Subject: Re: 1 > 0 == True -> False From: Chris Angelico Cc: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391117520 news.xs4all.nl 2861 [2001:888:2000:d::a6]:40969 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65051 On Fri, Jan 31, 2014 at 8:17 AM, Ian Kelly wrote: >> Why is tuple unpacking limited to the last argument? Is it just for >> the parallel with the function definition, where anything following it >> is keyword-only? > > Lack of a convincing use case, and the position of the following arguments > would then be dependent upon the length of the tuple, which in many cases > could result in subtle bugs. Okay. Just seemed an odd restriction; I can unpack an iterable into a function's args (great!), I can have other args before that tuple (handy!), but I can't have any after. ChrisA