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


Groups > comp.lang.python > #9111

Re: String concatenation vs. string formatting

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'string.': 0.04; 'python': 0.08; 'subject:string': 0.09; 'am,': 0.13; 'wrote:': 0.15; '3.2,': 0.16; 'strs': 0.16; 'subject:formatting': 0.16; 'subject:vs.': 0.16; 'cc:addr:python-list': 0.16; 'seems': 0.20; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; "doesn't": 0.22; 'header:In-Reply- To:1': 0.22; 'fine': 0.26; 'guess': 0.28; 'sat,': 0.28; 'all,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'unicode': 0.29; 'cc:addr:python.org': 0.30; 'chris': 0.32; 'optimization': 0.36; 'page': 0.36; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85.161': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'received:209': 0.40; 'subject:. ': 0.66; '12:16': 0.84; '2.7.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=oJNGFaVGfdvCQYDOKnHhcoFC3WnQazwoQ4Thkc09z2A=; b=INiEsb35r5ebn7q1t5Zs/h23uBpnKjZS6CG3T2UjbxMSb28sxpwYGoiqmQ+JgU9GVD 4k0tYiaF9uWBAirMiQGraQELGn36TxFcYmsZTTsxroCX/zLE/N3uCuq5fZI6Yj302jQw uTyatyP5XyX+Uwu8n9XWES5vTSE3fo1kzWTlA=
MIME-Version 1.0
In-Reply-To <CAPTjJmpL9F3Z3CnFNBMBxfpfh-HofuuV7fpsyGyZChpu56g7mA@mail.gmail.com>
References <mailman.785.1310156331.1164.python-list@python.org> <iv7qv2$2ar$1@speranza.aioe.org> <4e17e790$0$29977$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmpL9F3Z3CnFNBMBxfpfh-HofuuV7fpsyGyZChpu56g7mA@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Sat, 9 Jul 2011 00:29:38 -0600
Subject Re: String concatenation vs. string formatting
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
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.795.1310193009.1164.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1310193009 news.xs4all.nl 21891 [2001:888:2000:d::a6]:40013
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:9111

Show key headers only | View raw


On Sat, Jul 9, 2011 at 12:16 AM, Chris Angelico <rosuav@gmail.com> wrote:
> Has the same optimization been implemented for Unicode? The page
> doesn't mention Python 3 at all, and I would guess that the realloc
> optimization would work fine for both types of string.

Seems to be implemented for strs in 3.2, but not unicode in 2.7.

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


Thread

String concatenation vs. string formatting Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-08 15:18 -0500
  Re: String concatenation vs. string formatting John Gordon <gordon@panix.com> - 2011-07-08 20:23 +0000
    Re: String concatenation vs. string formatting Ben Finney <ben+python@benfinney.id.au> - 2011-07-09 08:50 +1000
      Re: String concatenation vs. string formatting Ben Finney <ben+python@benfinney.id.au> - 2011-07-09 09:15 +1000
    Re: String concatenation vs. string formatting Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-07-09 06:23 +0200
    Re: String concatenation vs. string formatting Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-10 01:45 -0500
      Re: String concatenation vs. string formatting Ben Finney <ben+python@benfinney.id.au> - 2011-07-10 17:07 +1000
      Re: String concatenation vs. string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-10 23:42 +1000
      Re: String concatenation vs. string formatting Roy Smith <roy@panix.com> - 2011-07-10 10:33 -0400
        Re: String concatenation vs. string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-11 08:48 +1000
        Re: String concatenation vs. string formatting Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-10 18:24 -0500
  Re: String concatenation vs. string formatting Billy Mays <noway@nohow.com> - 2011-07-08 16:57 -0400
    Re: String concatenation vs. string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-09 15:30 +1000
      Re: String concatenation vs. string formatting Ian Kelly <ian.g.kelly@gmail.com> - 2011-07-09 00:04 -0600
      Re: String concatenation vs. string formatting Chris Angelico <rosuav@gmail.com> - 2011-07-09 16:16 +1000
      Re: String concatenation vs. string formatting Ian Kelly <ian.g.kelly@gmail.com> - 2011-07-09 00:29 -0600
  Re: String concatenation vs. string formatting Ben Finney <ben+python@benfinney.id.au> - 2011-07-09 08:59 +1000
    Re: String concatenation vs. string formatting Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-08 18:29 -0500
  Re: String concatenation vs. string formatting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-09 15:12 +1000

csiph-web