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


Groups > comp.lang.python > #40221

Re: raw format string in string format method?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'url:pipermail': 0.05; 'deprecated': 0.07; 'dev': 0.07; 'formatting': 0.07; 'python': 0.09; 'lawrence': 0.09; 'subject:method': 0.09; 'subject:string': 0.09; 'distinction': 0.16; 'folks,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'removal,': 0.16; 'subject:raw': 0.16; 'troll': 0.16; 'wrote:': 0.17; '3.x': 0.22; 'originally': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'core': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.29; 'fri,': 0.30; 'thursday,': 0.30; 'url:python': 0.32; 'johnson': 0.32; 'says': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'there,': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'it!': 0.64; 'differences': 0.65; 'percent': 0.65; 'future,': 0.72; '2013': 0.84; 'url:python-dev': 0.84; 'viable': 0.84; 'glad': 0.86; 'asap!': 0.91; 'rick': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=KiPqRPym11IFwVRA+t80UbtmHas8m9ffHfIToPomxtQ=; b=aJfxKVKzIvmA3VjggIYEaDowJ49PgHkhY6lMDZKdvQPL2FwmpizKRHjNSNQ0GKA/8W pqLZ357uQIhfipREuWSiikeL166k3rt7BV43EnzhzeLsxpNSzh5zDgaiuY7s/PYaZ7NO W5BquoYIegvSDJaXs/z3f4C006mnrN12pX5Efn3D8Hb6NQeFRqlVtacUGCOdTSg9g605 ez0TZBJ4R1Gha4YJbJu7HMGT7n6uBxgNMkCAYu0NzH7rkgqNveObXRAB3djrcB5a3rJ2 ShkFTwRiwKWgaYTSy6V1bU6aMwqTFwo+18ySIKC1MEUHfIA8vJWiYV/6F3xFwQnzbQZ0 sCCQ==
MIME-Version 1.0
X-Received by 10.66.26.167 with SMTP id m7mr16597709pag.212.1362112155166; Thu, 28 Feb 2013 20:29:15 -0800 (PST)
In-Reply-To <acf73978-d332-4b57-8094-4fe5c52a669d@googlegroups.com>
References <512f6585$0$3108$ba620e4c@news.skynet.be> <mailman.2646.1362061370.2939.python-list@python.org> <512f6cd7$0$3108$ba620e4c@news.skynet.be> <acf73978-d332-4b57-8094-4fe5c52a669d@googlegroups.com>
Date Fri, 1 Mar 2013 15:29:14 +1100
Subject Re: raw format string in string format method?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.2701.1362112158.2939.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362112158 news.xs4all.nl 6931 [2001:888:2000:d::a6]:59966
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40221

Show key headers only | View raw


On Fri, Mar 1, 2013 at 10:27 AM, Rick Johnson
<rantingrickjohnson@gmail.com> wrote:
> On Thursday, February 28, 2013 8:42:31 AM UTC-6, Helmut Jarausch wrote:
>
>> Originally I had used percent-formatting
>> But isn't  it deprecated in Python 3.X ?
>
> I don't know the current state of "percent formats" future, however, i can tell you that it should be deprecated ASAP!

On Fri, Mar 1, 2013 at 11:00 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> Nope please see
> http://mail.python.org/pipermail/python-dev/2012-February/116790.html

And there, folks, you have it. The known troll demands its removal, a
core dev says that it's staying.

Percent formatting is a viable parallel to .format(), with some handy
differences - such as the distinction of significant characters, as
proven here.

Both are going to stay, and I'm glad of it!

ChrisA

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


Thread

raw format string in string format method? Helmut Jarausch <jarausch@skynet.be> - 2013-02-28 14:11 +0000
  Re: raw format string in string format method? Chris Angelico <rosuav@gmail.com> - 2013-03-01 01:22 +1100
    Re: raw format string in string format method? Helmut Jarausch <jarausch@skynet.be> - 2013-02-28 14:42 +0000
      Re: raw format string in string format method? Chris Angelico <rosuav@gmail.com> - 2013-03-01 02:09 +1100
      Re: raw format string in string format method? Rick Johnson <rantingrickjohnson@gmail.com> - 2013-02-28 15:27 -0800
        Re: raw format string in string format method? Chris Angelico <rosuav@gmail.com> - 2013-03-01 15:29 +1100
      Re: raw format string in string format method? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-01 00:00 +0000
  Re: raw format string in string format method? Peter Otten <__peter__@web.de> - 2013-02-28 16:41 +0100
  Re: raw format string in string format method? Rick Johnson <rantingrickjohnson@gmail.com> - 2013-02-28 15:06 -0800

csiph-web