Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43122
| Path | csiph.com!usenet.pasdenom.info!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 | <davea@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'encoding': 0.05; 'interpreter': 0.05; 'smallest': 0.07; 'suppose': 0.07; 'utf-8': 0.07; 'wang': 0.07; 'feature,': 0.09; 'pixel': 0.09; 'pixels': 0.09; 'spaces': 0.09; 'subject:string': 0.09; 'language,': 0.12; 'block.': 0.16; 'dot,': 0.16; 'dotted': 0.16; 'outputs': 0.16; 'perl.': 0.16; 'received:74.208.4.195': 0.16; 'roy': 0.16; 'symbols': 0.16; 'tab': 0.16; 'winner.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'basically': 0.19; 'written': 0.21; 'command': 0.22; '>>>': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'byte': 0.24; 'entries': 0.24; 'processor': 0.24; 'mon,': 0.24; "i've": 0.25; 'define': 0.26; 'defined': 0.27; 'header:In- Reply-To:1': 0.27; 'feature': 0.29; 'character': 0.29; 'characters': 0.30; "i'm": 0.30; 'program,': 0.31; '(on': 0.31; "d'aprano": 0.31; 'enabled': 0.31; 'long.': 0.31; 'steven': 0.31; 'says': 0.33; 'period': 0.33; 'could': 0.34; 'but': 0.35; 'version': 0.36; 'similar': 0.36; 'so,': 0.37; 'too': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'space': 0.40; 'middle': 0.60; 'results.': 0.60; 'hardware': 0.61; 'name': 0.63; 'map': 0.64; 'more': 0.64; 'competition': 0.65; 'received:74.208': 0.68; 'smith': 0.68; 'default': 0.69; 'fact,': 0.69; 'bare': 0.84; 'beer,': 0.84; 'song': 0.84; '2013': 0.98 |
| Date | Tue, 09 Apr 2013 02:28:51 -0400 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Splitting of string at an interval |
| 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> <mailman.295.1365438635.3114.python-list@python.org> <roy-733AD5.21090708042013@news.panix.com> <51637f11$0$30003$c3e8da3$5496439d@news.astraweb.com> |
| In-Reply-To | <51637f11$0$30003$c3e8da3$5496439d@news.astraweb.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:rZkOy4OAjqJmnWe5HSjeTNGFbs+tlVmj+fVnHFwmenw tYtPyK3i5pGuw7yRpCGWDgOk0VOvNPGBl+bwFlbEpE1Ya29pQC yco2OHRRChT+zao91J8G+r6uAhpWKU9texb+RRCtvbxbcMTniP zhQ3gdC0j33u2iO8wwW9KVgwlxhrOXnBPycklM04uFfA9alBWq +gbJljtSfNlcUsWL+cyZVi5JC8upb4ptoIwJiq126xL6LUpsPJ z1i7S/IfIzGO7XXHztM1xZgZu+3gpspO+eYGhVafnjR6Jb2dvO WIL6CNZ7zm1kuXZZwc04NnxYRl12zlHodQ0/IIQMs2O9pMvNQ= = |
| 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.317.1365488953.3114.python-list@python.org> (permalink) |
| Lines | 42 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365488953 news.xs4all.nl 6967 [2001:888:2000:d::a6]:56975 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:43122 |
Show key headers only | View raw
On 04/08/2013 10:38 PM, Steven D'Aprano wrote: > On Mon, 08 Apr 2013 21:09:08 -0400, Roy Smith wrote: > >>> 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 >> >> I see the top 10 entries are all written in Perl. I suppose this says >> something. > > > When I write my own programming language, it will include a one-character > built-in command to perform 99 bottles of beer, just so my language will > always be the winner. > > In fact, I may make it a bare . so that not only will it be the shortest > program, but also the smallest program in terms of number of non-white > pixels. > But do we need a shebang line? If so, then make sure the interpreter name is also one character long. I expect there's a character with fewer pixels than the period, but the utf-8 version of it would be more than one byte long. But you could define your language with a default encoding that happens to map said character to a single byte. The Wang word processor (proprietary hardware and OS) used a single pixel for \x20, and the no pixels for the \xff. This way spaces were "visible" with a faint dot, more or less in the middle of the cell block. It defined other symbols for other control characters like tab and newline. I'm still looking for a similar feature for emacs (on Ubuntu), but so far I've been disappointed by the results. Libreoffice has a similar feature, enabled by View->NonPrintingCharacters, but the dotted space is way too bold, basically a period that's higher in its cell. -- DaveA
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