Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7108

RE: new string formatting with local variables

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 <ramit.prasad@jpmchase.com>
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" <ramit.prasad@jpmchase.com>
To "'python-list@python.org'" <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 <mailman.2490.1307376958.9059.python-list@python.org> <slrniuq75p.47d.steve@news.mixmin.net> <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 <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.2505.1307391970.9059.python-list@python.org> (permalink)
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

Show key headers only | View raw


> print "{} was captured by {}".format(solo, jabba)
Is this Python2.7 specific?

Python 2.6.x : 
>>>print "{} was captured by {}".format('t1', 't2')
ValueError: zero length field name in format


Ramit




This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to European legal entities.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

new string formatting with local variables Jabba Laci <jabba.laci@gmail.com> - 2011-06-06 12:15 -0400
  Re: new string formatting with local variables Steve Crook <steve@mixmin.net> - 2011-06-06 18:30 +0000
    Re: new string formatting with local variables Ethan Furman <ethan@stoneleaf.us> - 2011-06-06 11:57 -0700
    RE: new string formatting with local variables "Prasad, Ramit" <ramit.prasad@jpmchase.com> - 2011-06-06 16:21 -0400
    Re: new string formatting with local variables Ethan Furman <ethan@stoneleaf.us> - 2011-06-06 14:07 -0700

csiph-web