Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85262
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <skip.montanaro@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'bits': 0.09; 'literal': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; '(b,': 0.16; 'tuple': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'thu,': 0.19; 'seems': 0.21; 'feb': 0.22; '>>>': 0.22; 'example': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'alternate': 0.24; 'cc:2**0': 0.24; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'forgot': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; '>>>>': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'another': 0.32; 'url:python': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'yield': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'list': 0.37; 'pm,': 0.38; 'url:mail': 0.40; 'ian': 0.60; 'most': 0.60; 'first': 0.61; 'places': 0.64; 'to:addr:gmail.com': 0.65; '2015': 0.84; 'otten': 0.84; '1:18': 0.91 |
| 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:to :cc:content-type; bh=Ah7okOTQ+btJeKJPAfRC3nCrAkvfmSfhec5GqipgRqY=; b=pOHAnp3M3vRzrBePjv6AZFEwGGPPoLBpThzcQMc5o1B/T9xzWD/wkx3LjJFHlN6GZK 6pzRg42syhrQSOSu4v9aZYiXUexIhinNATHm228MEh0sGYJDfERa8tta9rJYTgotIf4v L/81sbUpgAgscrr/NyEwOgM9mGkxtO6R+dlR5HqRUQEM6wHU8UG5y19QjqR0316aMiOG wlAWfkgymkqyEGpL574hg7vmIvldETMebhRXiqp/wfR5YikaKsSpoeUYbdnVSGroA+Lg UGE3SwWW0UueLDrtSpRb4kk1WkP0ggUbzdyL7y332IorgeymGQMCUUJPFv/0VusGGoWz UvmA== |
| MIME-Version | 1.0 |
| X-Received | by 10.60.85.38 with SMTP id e6mr2989229oez.65.1423155411952; Thu, 05 Feb 2015 08:56:51 -0800 (PST) |
| In-Reply-To | <6304fe65-0606-40eb-8732-c9ba9ae168e7@googlegroups.com> |
| References | <CAPTjJmpqx1Cmm89Lg6-XL4-xdM+xD6=GHKvWb2zYTe4=11ZPPg@mail.gmail.com> <mailman.18464.1423061056.18130.python-list@python.org> <07f4498c-7917-4315-85d4-73283a830f2d@googlegroups.com> <matlbh$r0s$1@ger.gmane.org> <CAPTjJmp=b2ZA8eqvyf3tqK+0MHqOgS-PAG+ELNNOwuKKPq4FJQ@mail.gmail.com> <mailman.18488.1423127457.18130.python-list@python.org> <54d33aa6$0$13003$c3e8da3$5496439d@news.astraweb.com> <mailman.18491.1423152554.18130.python-list@python.org> <6304fe65-0606-40eb-8732-c9ba9ae168e7@googlegroups.com> |
| Date | Thu, 5 Feb 2015 10:56:51 -0600 |
| Subject | Re: meaning of: line, = |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| To | Rustom Mody <rustompmody@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Python <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.18493.1423155421.18130.python-list@python.org> (permalink) |
| Lines | 36 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1423155421 news.xs4all.nl 2863 [2001:888:2000:d::a6]:33684 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:85262 |
Show key headers only | View raw
Tuple packing. No longer supported in Python 3, but in available in Python <= 2. Skip On Thu, Feb 5, 2015 at 10:45 AM, Rustom Mody <rustompmody@gmail.com> wrote: > On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote: >> On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote: >> > Devin Jeanpierre wrote: >> > >> >> On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico wrote: >> >>> On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten wrote: >> >>>> Another alternative is to put a list literal on the lefthand side: >> >>>> >> >>>>>>> def f(): yield 42 >> >>>> >> >>>> ... >> >>>>>>> [result] = f() >> >>>>>>> result >> >>>> 42 >> >>> >> >>> Huh, was not aware of that alternate syntax. >> >> >> >> Nor are most people. Nor is Python, in some places -- it seems like >> >> people forgot about it when writing some bits of the grammar. >> > >> > Got an example where you can use a,b but not [a,b] or (a,b)? >> >> >>> def f(a, (b, c)): >> ... print a, b, c > > What the hell is that?! > First I am hearing/seeing it. > Whats it called? > -- > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: meaning of: line, = Albert-Jan Roskam <fomcl@yahoo.com> - 2015-02-04 14:38 +0000
Re: meaning of: line, = Rustom Mody <rustompmody@gmail.com> - 2015-02-04 07:09 -0800
Re: meaning of: line, = Peter Otten <__peter__@web.de> - 2015-02-04 18:36 +0100
Re: meaning of: line, = Chris Angelico <rosuav@gmail.com> - 2015-02-05 08:18 +1100
Re: meaning of: line, = Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-02-05 01:10 -0800
Re: meaning of: line, = Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-02-05 20:40 +1100
Re: meaning of: line, = Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-05 09:08 -0700
Re: meaning of: line, = Rustom Mody <rustompmody@gmail.com> - 2015-02-05 08:45 -0800
Re: meaning of: line, = Skip Montanaro <skip.montanaro@gmail.com> - 2015-02-05 10:56 -0600
Re: meaning of: line, = Tim Chase <python.list@tim.thechases.com> - 2015-02-05 11:00 -0600
Re: meaning of: line, = Rustom Mody <rustompmody@gmail.com> - 2015-02-05 08:59 -0800
Re: meaning of: line, = Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-02-06 05:09 -0800
Re: meaning of: line, = Rustom Mody <rustompmody@gmail.com> - 2015-02-06 05:20 -0800
Re: meaning of: line, = Rustom Mody <rustompmody@gmail.com> - 2015-02-06 06:03 -0800
Re: meaning of: line, = Tim Chase <python.list@tim.thechases.com> - 2015-02-05 10:21 -0600
Re: meaning of: line, = Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-02-05 17:12 -0800
Re: meaning of: line, = Chris Angelico <rosuav@gmail.com> - 2015-02-06 12:17 +1100
Re: meaning of: line, = Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-02-06 17:52 +1300
Re: meaning of: line, = Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-02-06 12:30 +1300
csiph-web