Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'rejected': 0.07; 'python': 0.09; 'subject:string': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'cc:name:python list': 0.16; 'disguise': 0.16; 'from:addr:lanyjie': 0.16; 'from:name:yingjie lan': 0.16; 'magic': 0.16; 'message-id:@web121502.mail.ne1.yahoo.com': 0.16; 'received:124.205': 0.16; 'reply-to:addr:lanyjie': 0.16; 'reply- to:name:yingjie lan': 0.16; 'yingjie': 0.16; 'previously': 0.18; '(or': 0.18; 'string': 0.19; '(not': 0.21; 'header:In-Reply-To:1': 0.22; 'variable': 0.23; 'cheers,': 0.26; 'cc:2**0': 0.26; 'seems': 0.27; 'values': 0.28; 'cc:addr:python.org': 0.28; 'subject:skip:i 10': 0.28; 'reply-to:addr:yahoo.com': 0.28; 'feature': 0.31; 'could': 0.32; 'clear': 0.34; 'should': 0.35; 'level.': 0.35; 'level': 0.36; 'being': 0.36; 'subject:: ': 0.37; 'skip:f 20': 0.38; 'too': 0.39; '...': 0.40; 'different': 0.62; 'header:Reply- To:1': 0.67; 'grab': 0.69; 'received:98.138.90.51': 0.84; 'the\xa0': 0.84 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 539784.70920.bm@omp1055.mail.ne1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1333352829; bh=Jn9cVmSggBi2pTcjdXp82judWWG/dYxUG3X2r1e3seM=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gFrXGmag9yYZ03jD9qM5i/NTWhDPcuOCg3P5Ta4Z0q75iE0JbUkO/81CT11gArmT7Cum4+6ADtTiiHMp4Pc4lpMqXQ9Vcd9ZB30FpWTWI9/KSm5cdj7A824jA2Q1xL0j5n/Wx8MDtZXZATXc7N3oA+Mqc2HtqdEFUarDmFjG0HU= 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:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WbJB8CFqT6fIP0P5E9KEaEuvhxrlKUvgeyLj8jq5QXdmYMkhAU2ZjaAvVj79Ck44vuIf0Ql30mVMcGPKpB7uZCgTVx6oZG8ZshQJnsyDTuCPRWmSrT7cPoSZjAUaovh6OGNi56dEdsLkrEphd/aiHlUtGAqmLbAmwgpaDK18Z8c=; X-YMail-OSG: 7AQb7n0VM1ksYbn1ONpELmV2K3GO1EJCi_IQYo0SkdrGFmR kJKrd735qpkrk0R.KJZqrb_HuVai850RL_rATn1.0MNs_9ZEpF2S4lwqxdjG gF6F4DCcV2L7UElRpX03Me5rJxGZTTVwUjcP9BLOrs2C_yFlWp_qOLbdy289 k6eeGcn9lwgSDqW3v46yCTtPcH4laf5l8c3FZemcGfxXCWwquuTBkuunj.1u TCOivbXJF_anlL6qF_UfEpqqvylfQiMp3UmEkxBfpS_hEiiPzP7RfKdFY6wQ _.nQto57x3acNpID3Xf5XrIGpEu.MT_l6HrK.6ubkwm2sa_jSyHdo58t1RIl mTlfGjaQkd2TVW8PRUgYrHLQnfk1slXAytBXmdvHSdIR2GSCu4rr6A3_ZsIl LX2DoHj4o5Y7K1q64wpXgnNL9IePkN_ei2RuxxpkaH4xEzoaQVmoZOtPwXhJ O1XdHlwPk96px4IxjqNPMPOhK6jGhrO9O4CNvB.VXTQ2vUaYD0TaX_Miermx ohIRfvZPlfd4S X-Mailer: YahooMailWebService/0.8.117.340979 References: <1333174946.18436.YahooMailNeo@web121506.mail.ne1.yahoo.com> Date: Mon, 2 Apr 2012 00:47:09 -0700 (PDT) From: Yingjie Lan Subject: Re: string interpolation for python To: Chris Rebert In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python list 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1333353008 news.xs4all.nl 6890 [2001:888:2000:d::a6]:49358 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22444 > Python already has *3* different built-in string=0A=0A> formatting/interp= olation systems:=0A...=0A> I would surmise that your key "implicitly grab v= ariable values from=0A> the enclosing scope" feature has previously been re= jected for being=0A> too magical.=0A=0AIt grabs because it is an expression= in disguise (not a literal).=A0=0AIf we could make=A0that clear in the way= we write it, seems the=A0=0Amagic level should reduce.to a tolerable (or e= ven likable) level.=0A=0ACheers,=0AYingjie