Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; '>in': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:string': 0.09; '>this': 0.16; 'bieber': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'formats,': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'message-id:@4ax.com': 0.16; 'received:wlfraed': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'wrote:': 0.18; 'url:home': 0.21; 'dec': 0.22; 'statement': 0.23; 'feeds': 0.23; 'received:166': 0.23; 'code': 0.25; 'lee': 0.28; 'worked': 0.29; 'problem': 0.29; 'chris': 0.30; 'thu,': 0.32; 'actual': 0.32; 'rather': 0.33; 'header:X -Complaints-To:1': 0.33; 'to:addr:python-list': 0.34; 'anything': 0.34; 'matter,': 0.34; 'however,': 0.36; 'charset:us-ascii': 0.37; 'but': 0.37; 'received:org': 0.38; 'to:addr:python.org': 0.40; '2011': 0.61; 'subject:!': 0.67; 'dennis': 0.73; 'spaces': 0.73; 'interchange': 0.91; 'poorly': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Py-dea: Streamline string literals now! Date: Thu, 29 Dec 2011 00:00:26 -0500 References: <280841b8-8674-4c1d-9a82-28982340a4b8@v24g2000yqk.googlegroups.com> <1325106214.5274.140661016836917@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: mobile-166-147-101-117.mycingular.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325134844 news.xs4all.nl 6868 [2001:888:2000:d::a6]:60940 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18157 On Thu, 29 Dec 2011 08:42:46 +1100, Chris Angelico wrote: >In actual fact, the real problem is that quoted strings need to be >able to contain _anything_. The only true solution to that is >length-provided strings: > >s = "4spam >q = "14Hello, world!\n > >This works beautifully in interchange formats, but rather poorly in >source code (or, for that matter, anything editable). > Worked in FORTRAN for decades... 4Hspam No line feeds however, and one did have to count spaces for long strings when part of a complex format statement... 10Hfive ,rest of statement -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/