Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'string.': 0.04; 'expressions': 0.07; 'formatting': 0.09; 'subject:string': 0.09; 'template.': 0.09; 'subject:python': 0.11; 'to:name:python- list@python.org': 0.14; 'birds': 0.16; 'from:addr:lanyjie': 0.16; 'from:name:yingjie lan': 0.16; 'of\xa0': 0.16; 'received:124.205': 0.16; 'received:98.138.91.172': 0.16; 'received:nm12-vm4.bullet.mail.ne1.yahoo.com': 0.16; 'reply- to:addr:lanyjie': 0.16; 'reply-to:name:yingjie lan': 0.16; 'yingjie': 0.16; 'header:In-Reply-To:1': 0.22; 'idea': 0.24; 'cheers,': 0.26; 'seems': 0.27; 'subject:skip:i 10': 0.28; 'reply- to:addr:yahoo.com': 0.28; 'ease': 0.30; 'plain': 0.30; 'problem': 0.33; 'that,': 0.34; 'two': 0.35; 'to:addr:python-list': 0.35; 'things': 0.35; 'there': 0.36; '(with': 0.36; 'way,': 0.36; 'similar': 0.36; 'but': 0.37; 'dynamic': 0.37; 'subject:: ': 0.37; 'old': 0.38; 'too': 0.39; 'to:addr:python.org': 0.39; '...': 0.40; 'between': 0.61; 'miss': 0.66; 'header:Reply-To:1': 0.67; 'biggest': 0.70; 'notion': 0.84 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 112548.3674.bm@omp1019.mail.ne1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1333370415; bh=va7MyhChtYT6kXq7rZNGLL+CEWBqAFBhjQuls9de1w8=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pHIIl2jPU1bPLPi8ZCFw+7QFuxWoCtxDaoAnfQ/U/nvKNImwOE8VKxIH//GNYdH2iJufYYYbucxt+gS4mXgmG6hHJ6GZuLb6eQAmBVIA5dfuG5X6la1ill/kAMPgsDZ0m2syrmAgw944Emq33o5y6is9+bomQlHaiPgN+I/kk/M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lLLeEgQinWEEyodMWbioX0tLQ5/TpFIqXY6d4qR804o0hJqYnzRju71eZdMMx5m8rquGrKhTcxiWTg8XDtMZw0nNzmmKKe0i872ICpYOhwP5HqI8QyzgXR5YZ9619ZMn6gG9m/11BtJP3vRFUZ7E+50ZOiS7N4VgA+RNoePoaTM=; X-YMail-OSG: aXx6aoUVM1mklPfIYpfNph.ZZYzguwWbxNlYKv1_S1mvjuo zEGmI6n413OPq_H8YWodMIRAmwqEJlFxcPAKqFciKm6KA7a4mifLH7G2uwpA f2G5_GLY6VvYz_AuIEurRWA3hp0q79FpOwfp7yKWT9z9Bnd2GutyDhi3mINQ 7QKKEsdyf_7znNKs26pB5llUO6yjC89GGPgAh.Dk0xijhiKYxm6rM1Ma3wn5 Aby4OzdgmcdXdg7_C1h2SrWLREzTCn9YfLFkM_ECPWAqFE0QJ6LjiF3uwSZw d9oVE5CFQkW03bm4XqLbPFuh5Iv.kq5QiVHONKCujVOz6WVacznwATPf0REF pwgIjJK1nxXaBGJuddqP038a12y6QwXTwF4f8qfpuPB0egM1kalFAuRdul1p 6BXsLnnXvgzyYzF.tSO9rJJQ0qQhuHwl4NOaQ8ITkhTCncg2LL9JhIJdy.j_ ZHpORphTSIB3JkFdgqtKF_UA- X-Mailer: YahooMailWebService/0.8.117.340979 References: <1333174946.18436.YahooMailNeo@web121506.mail.ne1.yahoo.com> <4f7962b0$0$29981$c3e8da3$5496439d@news.astraweb.com> <4f79938c$0$29981$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 2 Apr 2012 05:40:14 -0700 (PDT) From: Yingjie Lan Subject: Re: string interpolation for python To: "python-list@python.org" In-Reply-To: <4f79938c$0$29981$c3e8da3$5496439d@news.astraweb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Yingjie Lan 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1333370596 news.xs4all.nl 6922 [2001:888:2000:d::a6]:43427 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22462 ...=0A> That, by the way, is perhaps the biggest problem with this idea of= =A0=0A=0A> dynamic strings: not that it is too powerful, but that it is TOO= WEAK.=A0=0A...=0A> and similar for both format() and Template.=0A=0A=0ASee= ms you miss understood my notion of dynamic string.=0ADynamic strings are e= xpressions in disguise: the things=0Ain between $...$ are plain old express= ions (with optional=A0=0Aformatting specifications). They are evaluated=0Aa= s if they were outside the dynamic string. We put them=0Ain there to to kil= l two birds with one stone:=A0=0A=A0 =A01) ease of reading;=0A=A0 =A02) pla= ce holding.=0A=0ACheers,=0AYingjie