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


Groups > comp.lang.python > #22452

Re: string interpolation for python

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'subject:string': 0.09; 'translations': 0.09; 'subject:python': 0.11; 'to:name:python-list@python.org': 0.14; '.py': 0.16; 'err,': 0.16; 'from:addr:lanyjie': 0.16; 'from:name:yingjie lan': 0.16; 'message-id:@web121502.mail.ne1.yahoo.com': 0.16; 'necessary,': 0.16; 'received:124.205': 0.16; 'reply-to:addr:lanyjie': 0.16; 'reply-to:name:yingjie lan': 0.16; 'yingjie': 0.16; 'code,': 0.19; 'header:In-Reply-To:1': 0.22; 'cheers,': 0.26; 'subject:skip:i 10': 0.28; 'reply-to:addr:yahoo.com': 0.28; 'file': 0.33; 'agree': 0.33; 'turn': 0.33; 'good.': 0.34; 'two': 0.35; 'to:addr:python- list': 0.35; 'there': 0.36; 'whatever': 0.36; 'but': 0.37; 'subject:: ': 0.37; 'it.': 0.38; 'to:addr:python.org': 0.39; 'stand': 0.60; 'most': 0.61; 'natural': 0.64; 'header:Reply-To:1': 0.67; 'sounds': 0.71; 'actually,': 0.84; 'execution.': 0.84; 'hardly': 0.84; 'received:98.138.90.53': 0.91
X-Yahoo-Newman-Property ymail-3
X-Yahoo-Newman-Id 112203.89317.bm@omp1035.mail.ne1.yahoo.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1333358242; bh=qJlN20SyNvmeDaWBCMCUj/VD4iiGYmc6DfWfTEuRubQ=; 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=q0GFYdktMszdWcVcPownADAllMb070Pa+tN9gfJyZPhwH8HSQiZMLZPA2J+/HZU2o9qQjuQw2p2VNn0cRIK+CnK5GbT8tm8R6BpitVWzKu2L6zdSjkeM3rCT2S6ra13dFz28rRbTvtEIyVFKzq285cRyoKUAwr/JFF9g7EriKgk=
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=o7w5y3tRaBB4QTOOqJxmbFu6wER88Xi6GCqVja+Gy7aCKFnn7vhO8g3l9vcxHQ8WObgF0pPEXc6YgPQ2VsV9VlFC5n2WXvd5doGdkRmH/jqsXjzuN4cxfEQuad7qPILv2RKMEFohITjPhOG7HCWaUqGnxb4uuL0gEnHQSYeR5I8=;
X-YMail-OSG f_B_lVEVM1mt4eZRahNA3Wp.v0iF8743DKvdryRQtUclmnL 0uafqkNpXUvU0HzZZ3HNsrmHVzqtoMldjNeGDC5MxoLVIC4sBCGsDS5uT3ou iyk0C926vWoMCLcujCi.jvxaJe3pEOsbz9maEg_nR4PtZilMcPFTzA8URnMs PKXSPQUz3JaoKV1Co95KhmnEAgufW73BBr3hY7RPiqFCSlNrUHcMT5.ndA61 9F0mLNcYH3.keYJ.KsgGOS3y6YJIJAyWgQzADi4MuTywb2H9okfxqRuXya5t EWxrKwDUhtlhOgcPnCimHmqnIgSe2nXgrgnw912C_ol12WS63lnXDnK_iyKH JluNpd3aXin4dybd7Ro1z8_YirPhGXhgkzJCsK6sAQEY13V_jA1R5bvEqTPR T67UYSH6NTUBckt5yPStycti8m96suQDm_nk8twijbT6PQ2JlXoXWkdFyUl_ wCTPfXhheE3KqI0Z9KrKf5SE-
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> <CAPTjJmq0LGubEtLbZfQsy0nOvMSJi+kmtLBrP-XJB+qrPDd_LA@mail.gmail.com>
Date Mon, 2 Apr 2012 02:17:21 -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 <CAPTjJmq0LGubEtLbZfQsy0nOvMSJi+kmtLBrP-XJB+qrPDd_LA@mail.gmail.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.1206.1333358447.3037.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1333358447 news.xs4all.nl 6899 [2001:888:2000:d::a6]:46669
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22452

Show key headers only | View raw


> Actually, this sounds like a job for a precompiler/preprocessor. Do

> whatever translations you want on your code, then turn it into a .py
> file for execution. But hardly necessary, as there are already two -
> err, three, I stand corrected - perfectly good ways to do it.


Agree and disagree. 

The other ways are not perfectly good.
They stinks in Python. 
This new way is the most natural way.
Effortless, natural. That's my Python.

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