Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66956
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.021 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; '"if': 0.09; '[x]': 0.16; 'fluent': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'python".': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'roy': 0.16; 'simpson': 0.16; 'subject:Remove': 0.16; 'subject:python.': 0.16; 'torn': 0.16; 'wrote:': 0.18; 'written': 0.21; 'header:User- Agent:1': 0.23; 'second': 0.26; 'read,': 0.26; 'header:In-Reply- To:1': 0.27; "i'm": 0.30; 'easier': 0.31; 'subject:from': 0.34; 'really': 0.36; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'received:211': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'full': 0.61; "you're": 0.61; 'content-disposition:inline': 0.62; 'smith': 0.68; 'sound': 0.68; 'article': 0.77; 'as:': 0.81; 'william': 0.81; '"yes,': 0.84; 'idiot,': 0.84; 'otten': 0.84 |
| Date | Mon, 24 Feb 2014 12:19:02 +1100 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | python-list@python.org |
| Subject | Re: Remove comma from tuples in python. |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <roy-7DBF08.09321721022014@news.panix.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <roy-7DBF08.09321721022014@news.panix.com> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.1 cv=Wu4Sb7vv c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=U9ly62hG2EAA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=nYUpOqzRdpsA:10 a=VUfPOBp7AAAA:8 a=8AHkEIZyAAAA:8 a=KUTDn18Q8em2xMHOm40A:9 a=CjuIK1q_8ugA:10 a=5hK03km2n30A:10 a=VhVvL8HfBcoA:10 a=5KVauyKsRKMA:10 |
| 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.7298.1393204758.18130.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1393204758 news.xs4all.nl 2832 [2001:888:2000:d::a6]:46138 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:66956 |
Show key headers only | View raw
On 21Feb2014 09:32, Roy Smith <roy@panix.com> wrote:
> In article <mailman.7230.1392992078.18130.python-list@python.org>,
> Peter Otten <__peter__@web.de> wrote:
> > [x*x for (x,) in lst]
> >
> > [paraphrasing...] can be better written as:
> >
> > [x*x for [x] in items]
>
> I'm torn between, "Yes, the second form is distinctly easier to read"
> and, "If you think the second form is easier to read, you're admitting
> you're not really fluent in Python".
+1 QOTW
--
Cameron Simpson <cs@zip.com.au>
It is a tale told by an idiot, full of sound and fury, signifying nothing.
- William Shakespeare
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Remove comma from tuples in python. Jaydeep Patil <patil.jay2009@gmail.com> - 2014-02-20 22:49 -0800
Re: Remove comma from tuples in python. Mircescu Andrei <mircescu.andrei@gmail.com> - 2014-02-20 23:02 -0800
Re: Remove comma from tuples in python. Stephane Wirtel <stephane@wirtel.be> - 2014-02-21 08:11 +0100
Re: Remove comma from tuples in python. Bernd Nawothnig <Bernd.Nawothnig@t-online.de> - 2014-02-21 08:20 +0100
Re: Remove comma from tuples in python. Gary Herron <gary.herron@islandtraining.com> - 2014-02-21 00:27 -0800
Re: Remove comma from tuples in python. Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2014-02-21 11:13 +0200
Re: Remove comma from tuples in python. Alister <alister.ware@ntlworld.com> - 2014-02-21 09:29 +0000
Re: Remove comma from tuples in python. Tim Chase <python.list@tim.thechases.com> - 2014-02-21 08:00 -0600
Re: Remove comma from tuples in python. Peter Otten <__peter__@web.de> - 2014-02-21 15:14 +0100
Re: Remove comma from tuples in python. Roy Smith <roy@panix.com> - 2014-02-21 09:32 -0500
Re: Remove comma from tuples in python. Travis Griggs <travisgriggs@gmail.com> - 2014-02-21 09:48 -0800
Re: Remove comma from tuples in python. Tim Chase <python.list@tim.thechases.com> - 2014-02-21 12:07 -0600
Re: Remove comma from tuples in python. Cameron Simpson <cs@zip.com.au> - 2014-02-24 12:19 +1100
Re: Remove comma from tuples in python. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-21 14:02 +0000
csiph-web