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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'terry': 0.07; '%s"': 0.09; 'subject:string': 0.09; 'def': 0.13; 'am,': 0.14; 'wrote:': 0.14; 'reedy': 0.16; 'subject:formatting': 0.16; 'header:In-Reply-To:1': 0.22; '\xa0if': 0.23; 'chris': 0.27; 'object': 0.27; 'message- id:@mail.gmail.com': 0.28; 'sat,': 0.29; 'to:addr:python-list': 0.32; 'received:209.85': 0.37; 'received:google.com': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; '2011': 0.62; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=Xrp1aEFCvcTLcXUPSOw7FRIJYfKplJEdqNKensAjQr0=; b=l8VvyTIm2vV/SJFb/Sy63hP0AfBNbooBvA37SgqAPG65qZzznSLB7mt1b7FffIJHqI w7v65NkHS5OWZFYHZkW+rs2ltJmI7q9NTkNITIMCx9K0dkyVn6qykO4G6rueB/iTJ/4p RBu02rPMqkUeepWmktHyUVE2Jwp01PgfuuHjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nQS5nelTZ4X7Uwzf4PCXSElkZWnvMNcc559z3jxW2+ovhOpbJqHPKOHpXwrXkTZul/ ioDqeRHsrT/1bOsweiLdMHFlUuaQBQRYs3a+F/VyYRBYb1++ACer9y7h9oZvbgNDttti QtDCrunMzkq64ns/ZBO6vnEgdH+nT7S6JFG/4= MIME-Version: 1.0 In-Reply-To: References: <4dc3aaa0$0$4756$426a74cc@news.free.fr> <4dc3b54c$0$29991$c3e8da3$5496439d@news.astraweb.com> <4dc404b7$0$29991$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 7 May 2011 10:09:49 +1000 Subject: Re: string formatting From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 11 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304726992 news.xs4all.nl 81474 [::ffff:82.94.164.166]:42097 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4876 On Sat, May 7, 2011 at 6:54 AM, Terry Reedy wrote: > def emsg(x): > =A0if isinstance(x,tuple): > =A0 =A0x =3D (x,) > =A0print(The following object caused a proplem: %s" % x) > Couldn't you just do that unconditionally? print(The following object caused a proplem: %s" % (x,)) Chris Angelico