Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news-transit.tcx.org.uk!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed5.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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'args': 0.05; 'subject:based': 0.07; 'received:209.85.210.174': 0.13; 'received :mail-iy0-f174.google.com': 0.13; 'alex23': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'return.': 0.16; 'subject: \n ': 0.16; 'subject:syntax': 0.16; 'mon,': 0.16; 'wrote:': 0.18; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'code.': 0.26; 'message-id:@mail.gmail.com': 0.28; 'pm,': 0.29; 'does': 0.32; 'propose': 0.32; 'returning': 0.32; 'list': 0.32; 'to:addr:python-list': 0.34; 'subject:/': 0.35; 'list,': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'type': 0.61; '2011': 0.61; 'your': 0.61; '19,': 0.68; 'note:': 0.69; 'legal': 0.70; 'death': 0.80 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Aq35M2U5Mb1aAVTpHLrVECTTu8h23bG8gNTcFN3fNqw=; b=dA4UIz034maNgqxY4LrR6swDGfdXDXQ64ePkwTVHFoTB/sJxmluM0HxVO7C82BgDNJ dsr7huj0+e4AubnNwwjwqDRmeko6SQOhNG2E/K4dZeMJ7Ahb2TMsisqL/waXTdj9xGle UHgG95p7d5pP/nSdoQ5UVptCrGYQrNJnX1clQ= MIME-Version: 1.0 In-Reply-To: <56f0073e-e259-4a9d-bd3a-1221fd74c5b1@d8g2000vbb.googlegroups.com> References: <841f4d29-f50b-4b0b-912b-b497fb6e60ec@t16g2000vba.googlegroups.com> <15424060.724.1324183952802.JavaMail.geo-discussion-forums@prix23> <298b28e6-b8c9-43e1-8c90-cf0d7654fe68@y12g2000vba.googlegroups.com> <56f0073e-e259-4a9d-bd3a-1221fd74c5b1@d8g2000vbb.googlegroups.com> Date: Mon, 19 Dec 2011 15:35:06 +1100 Subject: Re: Pythonification of the asterisk-based collection packing/unpacking syntax From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324269309 news.xs4all.nl 6869 [2001:888:2000:d::a6]:48413 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17498 On Mon, Dec 19, 2011 at 1:23 PM, alex23 wrote: > Except, OMG, list() is RETURNING A LIST, which is an OBVIOUS type > constraint. I propose that: > > =A0 =A0args =3D @set list(args) > > Will coerce args into a list and then give me a set in return. Point to note: list,set =3D set,list # Request a death sentence from the next maintainer is perfectly legal code. Now, what does your "args=3D" line do? ChrisA