Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!news.stack.nl!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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cpython': 0.05; 'variable,': 0.07; 'received:209.85.210.174': 0.13; 'received :mail-iy0-f174.google.com': 0.13; 'subject:vs.': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.22; 'formatting': 0.23; 'windows': 0.26; 'code,': 0.27; 'pm,': 0.29; 'yes.': 0.30; 'message- id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr :python-list': 0.34; 'probably': 0.34; 'but': 0.37; 'received:192': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'received:209.85': 0.38; 'put': 0.38; 'should': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'received:192.168': 0.40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=EP/DRsKeaFkqjGS8vQjwExJLreoq0FO3vV7ySw+pq50=; b=RaK4QEJK/fKVwm8Ds5/qrPRwhV+BDHRgWSQIHSPtjgZBlHBKcO0Y53afDP77jDhRa9 rZvNHvoN/g3XdxR8khjpiV39NvplWNmpNwvmqM+6uuBI+Fueh8ALmcaGMNHmsN2z6Lq2 31SGW5s72ufhAu9b/twNISnwI3AH96LtcBM7Y= Date: Sat, 31 Dec 2011 12:34:06 -0600 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111220 Thunderbird/9.0 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: .format vs. % References: <5642862.375.1325355574622.JavaMail.geo-discussion-forums@vbbhx10> In-Reply-To: <5642862.375.1325355574622.JavaMail.geo-discussion-forums@vbbhx10> X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325356467 news.xs4all.nl 6961 [2001:888:2000:d::a6]:39487 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18260 On 12/31/2011 12:19 PM, davidfx wrote: > Should we always be using .format() for formatting strings or %? In new code, yes. %-style formatting will eventually go away, but probably not for a long time. > If I wanted to put .format into a variable, how would I do that. What do you mean? -- CPython 3.2.2 | Windows NT 6.1.7601.17640