Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.156 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.70; '*S*': 0.01; 'python,': 0.02; 'output': 0.05; 'string': 0.09; 'formatting': 0.09; 'template': 0.14; 'tuple': 0.16; 'to:name:python-list@python.org': 0.22; 'header:Received:8': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'that.': 0.31; 'probably': 0.32; 'url:python': 0.33; 'older': 0.33; 'but': 0.35; 'method': 0.36; 'url:org': 0.36; 'should': 0.36; 'url:library': 0.38; 'to:addr :python-list': 0.38; 'rather': 0.38; 'ability': 0.39; 'to:addr:python.org': 0.39; 'received:98.137': 0.60; 'subject:"': 0.60; 'new': 0.61; 'url:3': 0.61; 'details.': 0.61; 'details': 0.65; 'header:Reply-To:1': 0.67; 'received:gq1.yahoo.com': 0.68; 'received:mail.gq1.yahoo.com': 0.68; 'received:98.136': 0.69; 'subject:hello': 0.83; 'subject:this': 0.83; 'received:bullet.mail.gq1.yahoo.com': 0.84; 'subject:you': 0.87 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 328289.881.bm@omp1086.mail.gq1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1406533295; bh=vASJ9dUXGcUJIq7JOpQyglicwugz2pBPeQy4vwfYsTk=; h=References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=S0Dd9CMzXXYLyeEtS3CiY+jJpV+rZGquxUXQdONQfokn6yiQOgLfWm5sKL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IGh0dHBzOi8vZG9jcy5weXRob24ub3JnLzIvbGlicmFyeS9zdGR0eXBlcy5odG1sI3N0cmluZy1mb3JtYXR0aW5nIGZvciAKPiBkZXRhaWxzLgo.IAo.IEhvd2V2ZXIsIGlmIHlvdSABMAEBAQE- X-Mailer: YahooMailWebService/0.8.196.685 References: <53D55ACA.5090901@islandtraining.com> Date: Mon, 28 Jul 2014 00:41:35 -0700 From: Albert-Jan Roskam Subject: Re: What meaning of this ""hello %s you are %s years old" % x" To: Gary Herron , "python-list@python.org" In-Reply-To: <53D55ACA.5090901@islandtraining.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Albert-Jan Roskam 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: 1406533649 news.xs4all.nl 2856 [2001:888:2000:d::a6]:36903 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75304 =0A=0A=0A=A0=0A> That's not tuple%tuple, but rather string%tuple.=A0 = And string%tuple is =0A> the older method of formatting an output string fr= om a template and a =0A> tuple of values.=A0 See =0A> https://docs.python.o= rg/2/library/stdtypes.html#string-formatting for =0A> details.=0A> =0A> How= ever, if you are just learning Python, you should probably use the =0A> *ne= wer* formatting operations.=A0 See =0A> https://docs.python.org/3.3/library= /string.html#formatspec for details =0A> of that.=0A=0ADo you know what was= the reason/consideration to switch to a new formatting operation? Ability = to have custom formatters with an own __format__ method?=0A=0ARegards,=0AAl= bert-Jan=0A