Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46598
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.unit0.net!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf03.am4!fx07.am4.POSTED!not-for-mail |
|---|---|
| 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> |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 26 |
| Message-ID | <L90qt.8321$RF7.3110@fx07.am4> (permalink) |
| NNTP-Posting-Host | 82.18.78.222 |
| X-Complaints-To | http://netreport.virginmedia.com |
| X-Trace | 1370001131 82.18.78.222 (Fri, 31 May 2013 11:52:11 UTC) |
| NNTP-Posting-Date | Fri, 31 May 2013 11:52:11 UTC |
| Organization | virginmedia.com |
| Date | Fri, 31 May 2013 11:52:11 GMT |
| X-Received-Bytes | 1598 |
| Xref | csiph.com comp.lang.python:46598 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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