Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46430

Re: How clean/elegant is Python's syntax?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'value,': 0.04; 'subject:Python': 0.06; 'agree,': 0.09; 'dan': 0.09; 'subject:How': 0.10; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'graceful.': 0.16; 'semantics': 0.16; 'tuple': 0.16; 'wrote:': 0.18; "python's": 0.19; 'thu,': 0.19; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'received:google.com': 0.35; 'var': 0.36; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'kind': 0.63; '30,': 0.65; 'as:': 0.81; 'imagine': 0.93; '2013': 0.98
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 :content-type; bh=xX1jyKZIhAQl4zP59W00IhIyscn7CGuKq3/YHOHnJlA=; b=rABLVVIO6Z8+S3FrUczPwCHvqBGRpmDJKHB8WWsDTnmeT2FFCFsTaGIZvo1gjploF/ 9tED8f4/HlAklocMnqKY+fqJGu2+nfOmhYBt8sevhvqr/PYVhjCAJJ4CnTl5io6QdPR2 cSkUQQji55kz/3ZgWpmmk/Iu7GAjzLtYfUlte6Q09OHcZfwfcFg/beA0tlU5WXxF23NR bQnCcqQkxcvGRcL8n05Xpuqxh4GnQdo9FLgf4Zi9/6BBriEaEQ/PbrNwsdnegGKS0SuS 2cqe/zG2xz0ODsr+HqIrFtqovGC9/9K6rUWJt/k6mYbX7i7r3V71EGiBDLVFsBpsLbKH xi/g==
MIME-Version 1.0
X-Received by 10.66.190.104 with SMTP id gp8mr6666380pac.84.1369886348267; Wed, 29 May 2013 20:59:08 -0700 (PDT)
In-Reply-To <CAGGBd_oT=vqvPGZy+d1H=XHjdPCmYUxJMXAwii7WH845xrYybQ@mail.gmail.com>
References <CAGVx7UWXAFHSHq37Ep-Vk=cM2wYrEGHSUhNc8s43bCvj_VcVow@mail.gmail.com> <CAGGBd_oT=vqvPGZy+d1H=XHjdPCmYUxJMXAwii7WH845xrYybQ@mail.gmail.com>
Date Thu, 30 May 2013 13:59:08 +1000
Subject Re: How clean/elegant is Python's syntax?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2394.1369886352.3114.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369886352 news.xs4all.nl 15972 [2001:888:2000:d::a6]:42153
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46430

Show key headers only | View raw


On Thu, May 30, 2013 at 10:24 AM, Dan Stromberg <drsalists@gmail.com> wrote:
> I'm finding it kind of hard to imagine not finding Python's syntax and
> semantics pretty graceful.
>
> About the only thing I don't like is:
>
>    var = 1,
>
> That binds var to a tuple (singleton) value, instead of 1.

I agree, and would write it as:

var = (1,)

for clarity.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How clean/elegant is Python's syntax? Chris Angelico <rosuav@gmail.com> - 2013-05-30 13:59 +1000

csiph-web