Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'completeness': 0.05; 'python': 0.08; 'subject:string': 0.09; 'valueerror:': 0.09; 'affiliates,': 0.16; 'captured': 0.16; 'opened,': 0.16; 'received:155.180': 0.16; 'received:155.180.234': 0.16; 'received:155.180.234.122': 0.16; 'received:159.53': 0.16; 'received:169.70': 0.16; 'received:172.18.0': 0.16; 'received:172.18.0.232': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:se3.svr.bankone.net': 0.16; 'received:svr.bankone.net': 0.16; 'solicitation': 0.16; 'subject:formatting': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'header:In-Reply- To:1': 0.21; 'applicable,': 0.23; 'herein': 0.23; 'received:169': 0.25; 'received:169.254': 0.25; 'reflect': 0.28; 'chase': 0.30; 'received:155': 0.30; 'received:159': 0.30; 'received:169.254.1': 0.30; 'print': 0.31; 'header:Received:8': 0.32; '(including': 0.32; 'to:addr:python-list': 0.33; 'thank': 0.35; 'received:172.18': 0.35; 'skip:{ 10': 0.35; 'format.': 0.36; 'accepted': 0.36; 'charset:us-ascii': 0.36; 'subject:new': 0.37; 'change': 0.37; 'accuracy': 0.37; 'arising': 0.37; 'data': 0.38; 'purposes': 0.38; 'subject:: ': 0.38; 'comments': 0.39; 'legally': 0.39; 'subject:with': 0.39; 'to:addr:python.org': 0.39; 'under': 0.40; 'format': 0.40; 'you.': 0.62; 'subject': 0.62; 'market': 0.63; 'virus': 0.63; 'free': 0.63; 'applicable': 0.65; 'co.,': 0.65; 'contact': 0.66; 'relating': 0.67; 'legal': 0.70; 'offer': 0.71; 'sale': 0.76; 'purchase': 0.83; 'affiliates.': 0.84; 'prices,': 0.84; 'python2.7': 0.84; 'subject:local': 0.84; 'defect': 0.91; 'instrument': 0.95; 'notice.': 0.96 X-DKIM: Sendmail DKIM Filter v2.5.6 sz1.jpmchase.com p56KLa9Y029248 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jpmchase.com; s=smtpout; t=1307391696; bh=Fg13W3wPbBJ2TGvO5w0m4bqOmzbZkS3ilSn+Ths jKYo=; h=From:To:Date:Subject:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=huSqXWF0ZEF BlZNsKTSdz/K/8PqMuCaqZ4E+vAVtpU0rYBTHVErEkrf5nQp2R6aKE5ivwAXldtn0Bp 3THp0L88YCAQZNhyXIaXXzfcCeKhZ5SLn2uYIIynKCPV+z3txn2lGLzsf2eowHKl+uO GJWk9ecf30JViAh4vuB+Egg9vM= From: "Prasad, Ramit" To: "'python-list@python.org'" Date: Mon, 6 Jun 2011 16:21:25 -0400 Subject: RE: new string formatting with local variables Thread-Topic: new string formatting with local variables Thread-Index: Acwkeo9gmA+NIjgRQqmTVOpvrGfGmwADHfHw References: <4DED2320.7050708@stoneleaf.us> In-Reply-To: <4DED2320.7050708@stoneleaf.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" 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: 27 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307391970 news.xs4all.nl 49042 [::ffff:82.94.164.166]:35277 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7108 > print "{} was captured by {}"=2Eformat(solo, jabba)=0D=0AIs this Python2= =2E7 specific?=0D=0A=0D=0APython 2=2E6=2Ex : =0D=0A>>>print "{} was capture= d by {}"=2Eformat('t1', 't2')=0D=0AValueError: zero length field name in fo= rmat=0D=0A=0D=0A=0D=0ARamit=0D=0A=0D=0A=0D=0A=0D=0A=0D=0AThis communication= is for informational purposes only=2E It is not=0D=0Aintended as an offer = or solicitation for the purchase or sale of=0D=0Aany financial instrument o= r as an official confirmation of any=0D=0Atransaction=2E All market prices,= data and other information are not=0D=0Awarranted as to completeness or ac= curacy and are subject to change=0D=0Awithout notice=2E Any comments or sta= tements made herein do not=0D=0Anecessarily reflect those of JPMorgan Chase= & Co=2E, its subsidiaries=0D=0Aand affiliates=2E=0D=0A=0D=0AThis transmiss= ion may contain information that is privileged,=0D=0Aconfidential, legally = privileged, and/or exempt from disclosure=0D=0Aunder applicable law=2E If y= ou are not the intended recipient, you=0D=0Aare hereby notified that any di= sclosure, copying, distribution, or=0D=0Ause of the information contained h= erein (including any reliance=0D=0Athereon) is STRICTLY PROHIBITED=2E Altho= ugh this transmission and any=0D=0Aattachments are believed to be free of a= ny virus or other defect=0D=0Athat might affect any computer system into wh= ich it is received and=0D=0Aopened, it is the responsibility of the recipie= nt to ensure that it=0D=0Ais virus free and no responsibility is accepted b= y JPMorgan Chase &=0D=0ACo=2E, its subsidiaries and affiliates, as applicab= le, for any loss=0D=0Aor damage arising in any way from its use=2E If you r= eceived this=0D=0Atransmission in error, please immediately contact the sen= der and=0D=0Adestroy the material in its entirety, whether in electronic or= hard=0D=0Acopy format=2E Thank you=2E=0D=0A=0D=0APlease refer to http://ww= w=2Ejpmorgan=2Ecom/pages/disclosures for=0D=0Adisclosures relating to Europ= ean legal entities=2E