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


Groups > comp.lang.python > #46598

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

From Alister <alister.ware@ntlworld.com>
Subject Re: How clean/elegant is Python's syntax?
Newsgroups comp.lang.python
References <vMZpt.7049$2I2.2738@fx17.am4> <51ff2721-d27e-466e-83e4-9ecc877d5583@fq2g2000pbb.googlegroups.com>
Message-ID <L90qt.8321$RF7.3110@fx07.am4> (permalink)
Organization virginmedia.com
Date 2013-05-31 11:52 +0000

Show all headers | View raw


On Fri, 31 May 2013 03:27:52 -0700, rusi wrote:

> On May 31, 2:08 pm, Alister <alister.w...@ntlworld.com> wrote:
>> On Thu, 30 May 2013 20:38:40 +0100, MRAB wrote:
>> > And additional argument (pun not intended) for putting sep second is
>> > that you can give it a default value:
>>
>> >     def join(iterable, sep=""): return sep.join(iterable)
>>
>> I think that is the winning argument.
> 
> Yes
> 
>> Next question is what should be the default ("", " " or',')?
> 
> Hmm... Never thought there was any choice here except "".  Yes can see
> the case for each.

to be fair "" is probably the most sensible although in my programs most 
joins are using ','



-- 
We are governed not by armies and police but by ideas.
		-- Mona Caird, 1892

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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