Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4888
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'terry': 0.07; '%s"': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:string': 0.09; 'pm,': 0.11; 'def': 0.13; 'am,': 0.14; 'wrote:': 0.14; 'reedy': 0.16; 'subject:formatting': 0.16; 'jan': 0.22; 'not.': 0.22; 'header:In-Reply-To:1': 0.22; 'guess': 0.26; 'chris': 0.27; 'object': 0.27; 'sat,': 0.29; 'does': 0.31; 'fact': 0.31; 'to:addr:python-list': 0.32; 'header:X-Complaints-To:1': 0.34; 'header:User-Agent:1': 0.35; 'so,': 0.38; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'works': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'attractive': 0.93 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: string formatting |
| Date | Sat, 07 May 2011 03:55:01 -0400 |
| References | <mailman.1229.1304666321.9059.python-list@python.org> <4dc3aaa0$0$4756$426a74cc@news.free.fr> <4dc3b54c$0$29991$c3e8da3$5496439d@news.astraweb.com> <mailman.1230.1304673808.9059.python-list@python.org> <4dc404b7$0$29991$c3e8da3$5496439d@news.astraweb.com> <RTXwp.18780$Ot6.17862@newsfe15.iad> <iq1n5o$gg8$1@dough.gmane.org> <BANLkTi=Z+54C-kO2L+sX8pq_TM1nmd6VQQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | rain.gmane.org |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 |
| In-Reply-To | <BANLkTi=Z+54C-kO2L+sX8pq_TM1nmd6VQQ@mail.gmail.com> |
| 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.1285.1304754912.9059.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1304754912 news.xs4all.nl 81474 [::ffff:82.94.164.166]:60767 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4888 |
Show key headers only | View raw
On 5/6/2011 8:09 PM, Chris Angelico wrote: > On Sat, May 7, 2011 at 6:54 AM, Terry Reedy<tjreedy@udel.edu> wrote: >> def emsg(x): >> if isinstance(x,tuple): >> x = (x,) >> print(The following object caused a proplem: %s" % x) >> > > Couldn't you just do that unconditionally? > print(The following object caused a proplem: %s" % (x,)) I guess so, as long as one remembers the ','. That does not obviate the fact that % x is an attractive nuisance which works until it does not. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
string formatting Jabba Laci <jabba.laci@gmail.com> - 2011-05-06 03:18 -0400
Re: string formatting Web Dreamer <webdreamer@nospam.fr> - 2011-05-06 10:00 +0200
Re: string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-06 08:46 +0000
Re: string formatting Chris Rebert <clp2@rebertia.com> - 2011-05-06 02:23 -0700
Re: string formatting Web Dreamer <webdreamer@nospam.fr> - 2011-05-06 14:10 +0200
Re: string formatting nn <pruebauno@latinmail.com> - 2011-05-06 06:06 -0700
Re: string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-06 14:33 +0000
Re: string formatting Web Dreamer <webdreamer@nospam.fr> - 2011-05-10 16:15 +0200
Re: string formatting Chris Angelico <rosuav@gmail.com> - 2011-05-11 00:43 +1000
Re: string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-06 14:24 +0000
Re: string formatting harrismh777 <harrismh777@charter.net> - 2011-05-06 14:22 -0500
Re: string formatting harrismh777 <harrismh777@charter.net> - 2011-05-06 14:39 -0500
Re: string formatting Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-06 13:54 -0600
Re: string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-07 02:30 +0000
Re: string formatting alex23 <wuwei23@gmail.com> - 2011-05-08 22:47 -0700
Re: string formatting Neil Cerutti <neilc@norwich.edu> - 2011-05-06 19:54 +0000
Re: string formatting Terry Reedy <tjreedy@udel.edu> - 2011-05-06 16:54 -0400
Re: string formatting Chris Angelico <rosuav@gmail.com> - 2011-05-07 10:09 +1000
Re: string formatting Terry Reedy <tjreedy@udel.edu> - 2011-05-07 03:55 -0400
Re: string formatting Raymond Hettinger <python@rcn.com> - 2011-05-10 10:20 -0700
csiph-web