Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; '21,': 0.07; 'formatting': 0.07; 'brace': 0.09; 'positional': 0.09; 'language,': 0.11; 'curly': 0.16; 'substituted': 0.16; 'wed,': 0.16; 'string': 0.17; 'wrote:': 0.17; 'translate': 0.20; 'parameters': 0.20; 'header:In-Reply-To:1': 0.25; 'realize': 0.27; 'message-id:@mail.gmail.com': 0.27; 'styles': 0.29; 'though.': 0.29; 'to:addr:python-list': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'more': 0.63; 'to:name:python': 0.84; 'angel': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=nKPSYRyxqDSQqrjcMVHjy7Bq4dxMCJGHTGYejlBAI7A=; b=OglDIISB9PNinwZChgNe0aS8WtnoU9cIkfUEacT8niwwMuCF37AMqrZW54CwDx2MF4 UourIX/jAfaRQW9Mk457eXBf4W2sHV7SSGRsJNd9gDsbYaBCazK2DvtvJtBuCgyFThjI U+V/e0DypprNqIQiPzQrkUtiLad1FN20ytXHOWxV4oW11i7c6X7qTzQq8/rz1GmBIgRr k/X4rX142TbU8WRX36ykVMl/KEARp5l34EsA1Vhz5I7CRaqImQqFpw32aKlbMpr8NUtc mo/kboX9NVAQvDMx/f5QiVr8nbBWnOSlb240E6taieOYU5yJ6vTJ+SRSs0oaqRBhxL0w SPVg== MIME-Version: 1.0 In-Reply-To: <50AD5C9D.9070302@davea.name> References: <31a82817-8c9b-4dd2-a468-89d8d081fd1b@googlegroups.com> <50AD0962.5080002@ncf.ca> <50AD5C9D.9070302@davea.name> From: Ian Kelly Date: Wed, 21 Nov 2012 16:11:15 -0700 Subject: Re: Yet another Python textbook To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 1353539508 news.xs4all.nl 6909 [2001:888:2000:d::a6]:60998 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33777 On Wed, Nov 21, 2012 at 3:58 PM, Dave Angel wrote: > Some don't realize that one very powerful use for the .format style of > working is that it makes localization much more straightforward. With > the curly brace approach, one can translate the format string into > another language, and if the parameters have to be substituted in > another order, it's all in one place. It only matters with positional placeholders, though. You can achieve the same thing using named placeholders, which both major formatting styles support.