Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'function,': 0.09; 'cc:addr :python-list': 0.11; '-tkc': 0.16; 'pythonic': 0.16; 'to:addr:python.list': 0.16; 'to:addr:tim.thechases.com': 0.16; 'to:name:tim chase': 0.16; 'unpacked': 0.16; 'result.': 0.19; 'code,': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'expanded': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'discovery': 0.31; 'subject:the': 0.34; 'could': 0.34; 'agree': 0.35; 'but': 0.35; 'received:google.com': 0.35; "didn't": 0.36; 'needed': 0.38; 'rather': 0.38; 'bad': 0.39; 'even': 0.60; 'more': 0.64; 'results': 0.69; 'news.': 0.84; '\xa0but': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=mGT2vJ1WIlfaBAJz2CH0KK1qVATcdtzpVYMcbXQ4YrI=; b=gt9aLDvPze57umR7AizJKmqDRZs6/4CxSRvIpwZp2xvAzlxqGCYRqAAQdUuOvUsD3p VrdHboAV2et6vQEGMncovyD9VYnSPbYivp3ugh7fDgxQBSL8KFXZZ0hiqkQItmDEwG0l XsgShehnHx9sH56Jrx9ZxWB0JQ5IryxvyuGqPDV1LRvwlkb6KBP3Dl8qPGC9dQMOnd+n KYZATjq0rmRfPymNKe8xM02r2t4XDBYVfgb3aUiRLmwRr81Y+i8eQnG9l4RBTYRZ/i3L mbf3cPYYEBMIVgcDXt1zg5ybGcj8Rl2TmS0za78dspKe9vmcgVMFgbKj/R86/t0zTLyb 8hzA== X-Received: by 10.182.158.70 with SMTP id ws6mr3445777obb.70.1366053438755; Mon, 15 Apr 2013 12:17:18 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20130415141042.2b046c3c@bigbox.christie.dr> References: <20130415135013.58430065@bigbox.christie.dr> <20130415141042.2b046c3c@bigbox.christie.dr> From: Barrett Lewis Date: Mon, 15 Apr 2013 12:16:48 -0700 Subject: Re: Process tuple contents on the fly To: Tim Chase Content-Type: multipart/alternative; boundary=089e01494a38f668f604da6b19b0 Cc: Python Mailing List 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: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366053447 news.xs4all.nl 2678 [2001:888:2000:d::a6]:37732 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43640 --089e01494a38f668f604da6b19b0 Content-Type: text/plain; charset=ISO-8859-1 > In the particular case I did it in, I needed the incremental results > passed to a function, not just the final result. I don't think this > made it into the final code, rather it was expanded to be more > readable. But the discovery made me feel a disturbance in the > Pythonic force of the universe. :*) > > -tkc > I see what you are saying, but I agree that is a disturbance I didn't even know you could do for key, d[key], that just feels like bad news. however for what you are saying it makes sense. TIL that you can use an unpacked value during unpacking! --089e01494a38f668f604da6b19b0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable




In the particular case I did it in, I needed the incremental re= sults
passed to a function, not just the final result. =A0I don't think this<= br> made it into the final code, rather it was expanded to be more
readable. =A0But the discovery made me feel a disturbance in the
Pythonic force of the universe. :*)

-tkc

I see what you are saying, b= ut I agree that is a disturbance I didn't even know you could do=A0
for key, d[key], that just feels like bad news. however for wh= at you are saying it makes sense. TIL that you can use an unpacked value du= ring unpacking!=A0

--089e01494a38f668f604da6b19b0--