Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9159

Re: String concatenation vs. string formatting

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 <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; ':-)': 0.06; '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; 'examples': 0.12; 'am,': 0.13; 'wrote:': 0.15; '(around': 0.16; 'from:addr:vinay_sajip': 0.16; 'message- id:@post.gmane.org': 0.16; 'sajip': 0.16; 'subject:formatting': 0.16; 'subject:vs.': 0.16; 'vinay': 0.16; 'seems': 0.20; 'trying': 0.23; 'project,': 0.24; 'writes:': 0.25; 'thanks.': 0.26; "i'm": 0.27; 'class': 0.31; 'andrew': 0.32; "i'll": 0.33; 'to:addr :python-list': 0.34; 'header:X-Complaints-To:1': 0.34; 'header :User-Agent:1': 0.34; 'there': 0.34; 'post': 0.34; 'charset:us- ascii': 0.36; 'anything': 0.37; 'minimum': 0.37; 'but': 0.37; 'could': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'from:addr:yahoo.co.uk': 0.38; 'linked': 0.38; 'else': 0.38; 'header:Mime-Version:1': 0.39; "there's": 0.39; 'to:addr:python.org': 0.39; 'free': 0.63; 'subject:. ': 0.66; '02:23': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Vinay Sajip <vinay_sajip@yahoo.co.uk>
Subject Re: String concatenation vs. string formatting
Date Sun, 10 Jul 2011 09:47:08 +0000 (UTC)
References <4E17661D.6020307@gmail.com> <loom.20110709T125838-983@post.gmane.org> <4E18CFF8.1060908@gmail.com> <loom.20110710T092117-742@post.gmane.org> <4E1959DA.80600@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host sea.gmane.org
User-Agent Loom/3.14 (http://gmane.org/)
X-Loom-IP 82.152.15.113 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18)
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.834.1310291243.1164.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1310291243 news.xs4all.nl 21878 [2001:888:2000:d::a6]:45490
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:9159

Show key headers only | View raw


Andrew Berg <bahamutzero8825 <at> gmail.com> writes:

> On 2011.07.10 02:23 AM, Vinay Sajip wrote:
> > There are examples in the blog post I linked to earlier:
> It seems that would require logutils. I'm trying to keep dependencies to
> a minimum in my project, but I'll take a look at logutils and see if
> there's anything else I could use. Thanks.

You don't need logutils, just the BraceMessage class - which is shown in the
blog post (around 10 lines). Feel free to use it with copy and paste :-)

Regards,

Vinay Sajip



Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: String concatenation vs. string formatting Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-07-10 09:47 +0000

csiph-web