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


Groups > comp.lang.python > #46610

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!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.067
X-Spam-Evidence '*H*': 0.87; '*S*': 0.01; 'argument': 0.05; 'subject:Python': 0.06; 'parameter': 0.09; 'subject:How': 0.10; '("",': 0.16; 'argument.': 0.16; 'wrote:': 0.18; '31,': 0.24; 'versions': 0.24; 'question': 0.24; 'subject:/': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'could': 0.34; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'next': 0.36; 'subject:?': 0.36; 'should': 0.36; 'received:209': 0.37; 'winning': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'more': 0.64; 'different': 0.65; 'default': 0.69; 'join,': 0.84; 'do:': 0.91; '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:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=Vzaf9Uu9nHmgw1FYc1+K6SW1qv2hUkLcSeDitVV+1tM=; b=M3hxKX7PCNEEcNZi7vwSiegjlmHhdLsxzw8tyA6wNsYTNFcMggaQYS4/aoFXYkLD1k 5N4iDJOIuZkvA0/diZYJPwVx0Cd4EZy3UGvT/ANvmXzA/igeXqYiDDepT/igEOuYBzPh JGllmjhFxsvmkwMfsyL239jSXlyYmV813JtGka2ZoiF5aIBeYfl6SYXI+Qz5zqdjyxpm EZwpiD+7TTdiGaC/AG65xVh3+erQTF45g1OgcVvp5SD57Lt+coISrSuSWxHaTBZ7YwTy XaMlcfyxzSdnZfxstSf4/dFVsYaGxhE17++a0PI12T2k4O5oHsvfm7xlNBNvC+yIqsB/ nv+Q==
X-Received by 10.68.42.134 with SMTP id o6mr13604077pbl.149.1370014839163; Fri, 31 May 2013 08:40:39 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAA=1kxQLRYXcB6te1Xh6EoL6Y8V4NUG3gqKCSR89mEeDUg58Hw@mail.gmail.com>
References <vMZpt.7049$2I2.2738@fx17.am4> <CAA=1kxQLRYXcB6te1Xh6EoL6Y8V4NUG3gqKCSR89mEeDUg58Hw@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Fri, 31 May 2013 09:39:58 -0600
Subject Re: How clean/elegant is Python's syntax?
To Python <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.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.2494.1370015234.3114.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1370015234 news.xs4all.nl 15997 [2001:888:2000:d::a6]:32778
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46610

Show key headers only | View raw


On Fri, May 31, 2013 at 4:16 AM, Fábio Santos <fabiosantosart@gmail.com> wrote:
> On Fri, May 31, 2013 at 10:08 AM, Alister <alister.ware@ntlworld.com> wrote:
>> I think that is the winning argument.
>> Next question is what should be the default ("", " " or',')?
>
> join, comma_join, whitejoin, linejoin variants, with different defaults?

The more specific versions should not even have the parameter as an
argument that can be supplied.  Otherwise you could do:

comma_join(words, sep=';')

which is just unclear, and there is no reason to allow it.

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


Thread

Re: How clean/elegant is Python's syntax? Alister <alister.ware@ntlworld.com> - 2013-05-31 09:08 +0000
  Re: How clean/elegant is Python's syntax? Fábio Santos <fabiosantosart@gmail.com> - 2013-05-31 11:16 +0100
  Re: How clean/elegant is Python's syntax? rusi <rustompmody@gmail.com> - 2013-05-31 03:27 -0700
    Re: How clean/elegant is Python's syntax? Alister <alister.ware@ntlworld.com> - 2013-05-31 11:52 +0000
  Re: How clean/elegant is Python's syntax? Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-31 09:39 -0600

csiph-web