Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43083
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <arnodel@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.050 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.01; 'smallest': 0.07; 'subject:string': 0.09; 'cc:addr:python-list': 0.11; 'def': 0.12; 'outputs': 0.16; 'roy': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'initial': 0.24; 'cheers,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'skip:" 50': 0.36; 'space': 0.40; 'competition': 0.65; 'to:addr:gmail.com': 0.65; 'smith': 0.68; 'song': 0.84; 'optimum': 0.93; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=TjBE0YI7tTLMuAMttcP5GAHmruWkOXtCAAxhyOAPGsg=; b=FUKtwvkXFAqGcRTjohA0sNO7AUqbL0dA9PrAPudlHJrQn+vRViuK86dhpuwXkpSeIs arBHbtHGwmL6wwHiA3EIP21wNNenzyct1GB294ZJrHWHaFAqfeyxlurLxHyuPW+AWwnp aJvGCmj7PUQtIP6u/JSO5q4jiwUXquvkRuIYcAUovTE8HmDiqsMws34DwhkpE54DCUPo 50y+W+IbQXWN0XK+gms1PH09jh0lhApMiXKCnn4K+p4sg0nRRFmAHHETNd24gg9bbYKB RAR5oDIL3AFiJrwxu2Ub/urn9F+wVp5tfbYyNPUh10AU3bq1yFdDhuRyg/qAXX3eF+R7 NrAg== |
| MIME-Version | 1.0 |
| X-Received | by 10.112.6.234 with SMTP id e10mr11996721lba.46.1365438626941; Mon, 08 Apr 2013 09:30:26 -0700 (PDT) |
| In-Reply-To | <CAPTjJmqMZPr3qEO5-w6EVTT5fko0Yo3smSomgNJyysOJzmwGvQ@mail.gmail.com> |
| References | <e66efa13-c35d-4169-b3cc-3617d3d6a8c7@googlegroups.com> <5161e996$0$29995$c3e8da3$5496439d@news.astraweb.com> <mailman.263.1365390121.3114.python-list@python.org> <roy-024D82.09215608042013@news.panix.com> <CAJ6cK1aWX3cPxFaHgqd=YJAJSmbA3b+mj4TYuEiW0cUCBtiabA@mail.gmail.com> <D77F906C-B07F-4A6B-B0E0-05B94AA006CE@panix.com> <CAPTjJmqMZPr3qEO5-w6EVTT5fko0Yo3smSomgNJyysOJzmwGvQ@mail.gmail.com> |
| Date | Mon, 8 Apr 2013 17:30:26 +0100 |
| Subject | Re: Splitting of string at an interval |
| From | Arnaud Delobelle <arnodel@gmail.com> |
| To | Chris Angelico <rosuav@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Python <python-list@python.org> |
| 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.295.1365438635.3114.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365438635 news.xs4all.nl 6881 [2001:888:2000:d::a6]:55557 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:43083 |
Show key headers only | View raw
On 8 April 2013 17:20, Chris Angelico <rosuav@gmail.com> wrote: > On Tue, Apr 9, 2013 at 1:37 AM, Roy Smith <roy@panix.com> wrote: >> I can't help point out, however, that if your initial implementation is to have your code return a constant, it's pretty likely to be an optimum solution in both time and space :-) > > Likely, but not certain. > > # 1 > def fifty_stars(): > return "**************************************************" > > # 2 > fifty_stars=lambda "*"*50 There's a whole competition about writing the smallest program which outputs the song "99 bottles of beer": http://codegolf.com/99-bottles-of-beer Cheers, -- Arnaud
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Splitting of string at an interval subhabangalore@gmail.com - 2013-04-07 13:25 -0700
Re: Splitting of string at an interval Dave Angel <davea@davea.name> - 2013-04-07 16:46 -0400
Re: Splitting of string at an interval Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-07 21:48 +0000
Re: Splitting of string at an interval Chris Angelico <rosuav@gmail.com> - 2013-04-08 13:01 +1000
Re: Splitting of string at an interval Roy Smith <roy@panix.com> - 2013-04-08 09:21 -0400
Re: Splitting of string at an interval Arnaud Delobelle <arnodel@gmail.com> - 2013-04-08 16:10 +0100
Re: Splitting of string at an interval Roy Smith <roy@panix.com> - 2013-04-08 11:37 -0400
Re: Splitting of string at an interval Chris Angelico <rosuav@gmail.com> - 2013-04-09 02:20 +1000
Re: Splitting of string at an interval Arnaud Delobelle <arnodel@gmail.com> - 2013-04-08 17:30 +0100
Re: Splitting of string at an interval Roy Smith <roy@panix.com> - 2013-04-08 21:09 -0400
Re: Splitting of string at an interval Tim Chase <python.list@tim.thechases.com> - 2013-04-08 20:42 -0500
Re: Splitting of string at an interval Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-09 02:38 +0000
Re: Splitting of string at an interval Andrew Berg <bahamutzero8825@gmail.com> - 2013-04-08 21:57 -0500
Re: Splitting of string at an interval Chris Angelico <rosuav@gmail.com> - 2013-04-09 14:22 +1000
Re: Splitting of string at an interval Dave Angel <davea@davea.name> - 2013-04-09 02:28 -0400
Re: Splitting of string at an interval Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-04-08 19:15 -0400
csiph-web