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


Groups > comp.lang.python > #22462

Re: string interpolation for python

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <lanyjie@yahoo.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'string.': 0.04; 'expressions': 0.07; 'formatting': 0.09; 'subject:string': 0.09; 'template.': 0.09; 'subject:python': 0.11; 'to:name:python- list@python.org': 0.14; 'birds': 0.16; 'from:addr:lanyjie': 0.16; 'from:name:yingjie lan': 0.16; 'of\xa0': 0.16; 'received:124.205': 0.16; 'received:98.138.91.172': 0.16; 'received:nm12-vm4.bullet.mail.ne1.yahoo.com': 0.16; 'reply- to:addr:lanyjie': 0.16; 'reply-to:name:yingjie lan': 0.16; 'yingjie': 0.16; 'header:In-Reply-To:1': 0.22; 'idea': 0.24; 'cheers,': 0.26; 'seems': 0.27; 'subject:skip:i 10': 0.28; 'reply- to:addr:yahoo.com': 0.28; 'ease': 0.30; 'plain': 0.30; 'problem': 0.33; 'that,': 0.34; 'two': 0.35; 'to:addr:python-list': 0.35; 'things': 0.35; 'there': 0.36; '(with': 0.36; 'way,': 0.36; 'similar': 0.36; 'but': 0.37; 'dynamic': 0.37; 'subject:: ': 0.37; 'old': 0.38; 'too': 0.39; 'to:addr:python.org': 0.39; '...': 0.40; 'between': 0.61; 'miss': 0.66; 'header:Reply-To:1': 0.67; 'biggest': 0.70; 'notion': 0.84
X-Yahoo-Newman-Property ymail-3
X-Yahoo-Newman-Id 112548.3674.bm@omp1019.mail.ne1.yahoo.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1333370415; bh=va7MyhChtYT6kXq7rZNGLL+CEWBqAFBhjQuls9de1w8=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pHIIl2jPU1bPLPi8ZCFw+7QFuxWoCtxDaoAnfQ/U/nvKNImwOE8VKxIH//GNYdH2iJufYYYbucxt+gS4mXgmG6hHJ6GZuLb6eQAmBVIA5dfuG5X6la1ill/kAMPgsDZ0m2syrmAgw944Emq33o5y6is9+bomQlHaiPgN+I/kk/M=
DomainKey-Signature a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lLLeEgQinWEEyodMWbioX0tLQ5/TpFIqXY6d4qR804o0hJqYnzRju71eZdMMx5m8rquGrKhTcxiWTg8XDtMZw0nNzmmKKe0i872ICpYOhwP5HqI8QyzgXR5YZ9619ZMn6gG9m/11BtJP3vRFUZ7E+50ZOiS7N4VgA+RNoePoaTM=;
X-YMail-OSG aXx6aoUVM1mklPfIYpfNph.ZZYzguwWbxNlYKv1_S1mvjuo zEGmI6n413OPq_H8YWodMIRAmwqEJlFxcPAKqFciKm6KA7a4mifLH7G2uwpA f2G5_GLY6VvYz_AuIEurRWA3hp0q79FpOwfp7yKWT9z9Bnd2GutyDhi3mINQ 7QKKEsdyf_7znNKs26pB5llUO6yjC89GGPgAh.Dk0xijhiKYxm6rM1Ma3wn5 Aby4OzdgmcdXdg7_C1h2SrWLREzTCn9YfLFkM_ECPWAqFE0QJ6LjiF3uwSZw d9oVE5CFQkW03bm4XqLbPFuh5Iv.kq5QiVHONKCujVOz6WVacznwATPf0REF pwgIjJK1nxXaBGJuddqP038a12y6QwXTwF4f8qfpuPB0egM1kalFAuRdul1p 6BXsLnnXvgzyYzF.tSO9rJJQ0qQhuHwl4NOaQ8ITkhTCncg2LL9JhIJdy.j_ ZHpORphTSIB3JkFdgqtKF_UA-
X-Mailer YahooMailWebService/0.8.117.340979
References <CABgq=FyhR+Ldujj3YKRBpVXRVoeoayuXZviUUcNx-gXnFiHLSw@mail.gmail.com> <CACoeR0xV=28j6rFHm1ep3gzH9C0sbDqyxRRwX-JrVm3G+rrXww@mail.gmail.com> <1333174946.18436.YahooMailNeo@web121506.mail.ne1.yahoo.com> <jl6ma0$ptg$1@dough.gmane.org> <mailman.1200.1333352587.3037.python-list@python.org> <4f7962b0$0$29981$c3e8da3$5496439d@news.astraweb.com> <mailman.1205.1333358032.3037.python-list@python.org> <4f79938c$0$29981$c3e8da3$5496439d@news.astraweb.com>
Date Mon, 2 Apr 2012 05:40:14 -0700 (PDT)
From Yingjie Lan <lanyjie@yahoo.com>
Subject Re: string interpolation for python
To "python-list@python.org" <python-list@python.org>
In-Reply-To <4f79938c$0$29981$c3e8da3$5496439d@news.astraweb.com>
MIME-Version 1.0
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
Reply-To Yingjie Lan <lanyjie@yahoo.com>
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.1212.1333370596.3037.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1333370596 news.xs4all.nl 6922 [2001:888:2000:d::a6]:43427
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22462

Show key headers only | View raw


...
> That, by the way, is perhaps the biggest problem with this idea of 

> dynamic strings: not that it is too powerful, but that it is TOO WEAK. 
...
> and similar for both format() and Template.


Seems you miss understood my notion of dynamic string.
Dynamic strings are expressions in disguise: the things
in between $...$ are plain old expressions (with optional 
formatting specifications). They are evaluated
as if they were outside the dynamic string. We put them
in there to to kill two birds with one stone: 
   1) ease of reading;
   2) place holding.

Cheers,
Yingjie

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


Thread

Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 00:39 -0700
  Re: string interpolation for python Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2012-04-02 11:01 +0300
  Re: string interpolation for python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-04-02 08:26 +0000
    Re: string interpolation for python Chris Angelico <rosuav@gmail.com> - 2012-04-02 18:47 +1000
    Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 02:11 -0700
      Re: string interpolation for python Duncan Booth <duncan.booth@invalid.invalid> - 2012-04-02 10:19 +0000
      Re: string interpolation for python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-04-02 11:54 +0000
        Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 05:40 -0700
          Re: string interpolation for python Laurent Claessens <moky.math@gmail.com> - 2012-04-02 15:02 +0200
            Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 07:25 -0700
            Re: Re: string interpolation for python Evan Driscoll <driscoll@cs.wisc.edu> - 2012-04-02 15:36 -0500
          Re: string interpolation for python mwilson@the-wire.com - 2012-04-02 10:46 -0400
            Re: string interpolation for python mwilson@the-wire.com - 2012-04-02 11:34 -0400
              Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 09:02 -0700
      Re: string interpolation for python rusi <rustompmody@gmail.com> - 2012-04-02 06:04 -0700
    Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 02:17 -0700
      Re: string interpolation for python alex23 <wuwei23@gmail.com> - 2012-04-02 22:47 -0700
    Re: string interpolation for python Chris Angelico <rosuav@gmail.com> - 2012-04-02 19:56 +1000
    Re: string interpolation for python Chris Rebert <clp2@rebertia.com> - 2012-04-02 03:23 -0700
    Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 04:46 -0700
    Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 05:00 -0700
    Re: string interpolation for python Chris Angelico <rosuav@gmail.com> - 2012-04-03 00:58 +1000
      Re: string interpolation for python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-04-02 18:56 +0000
    Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 08:49 -0700
    Re: string interpolation for python Chris Angelico <rosuav@gmail.com> - 2012-04-03 08:38 +1000
      Re: string interpolation for python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-04-02 23:18 +0000
    Re: string interpolation for python Yingjie Lan <lanyjie@yahoo.com> - 2012-04-02 18:57 -0700

csiph-web