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


Groups > comp.lang.python > #46751

Re: Python #ifdef

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.039
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.06; 'makefile': 0.09; 'language,': 0.12; "wouldn't": 0.14; "'include'": 0.16; 'directive': 0.16; 'erik': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'googling': 0.16; 'retained': 0.16; 'tool.': 0.16; 'wrote:': 0.18; 'mon,': 0.24; 'sort': 0.25; 'source': 0.25; 'class.': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'technology.': 0.30; 'message- id:@mail.gmail.com': 0.30; 'along': 0.30; 'lines': 0.31; 'that.': 0.31; 'agreed.': 0.31; 'piece': 0.31; 'file': 0.32; 'class': 0.32; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'building': 0.35; 'doing': 0.36; 'requirements': 0.37; 'being': 0.38; 'system,': 0.38; 'stopped': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'improved': 0.60; 'middle': 0.60; 'problems.': 0.60; 'most': 0.60; 'simply': 0.61; 'first': 0.61; 'hearing': 0.63; 'wanting': 0.93; 'subject: #': 0.96; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rdOAsuGSUkFZsBleST3QRggbDoQFm/7LLLKC3P493HU=; b=0ZMLg/LVdaq8DITZayNO0CgmAWXREVmqsaiVHvfYgHBK91V54A/73CbDzAneKLE8Et IV+5ArdXM4eYAWGpvdiWb9Y4SSJdPpShtQHIZJ+/CLw8j4g5/+XWbD4wtJ5Z6Mym51JP RLicvrSzTcag0+AO3W8JeGAbGrTMRfuT6bkFOebHDRF9Q86TeJ36v/UkbH92PrFBkgPf JT5TatRf44p0rdNBPC2PnVpMxGjKpeZiyOzP83ZotOR8OOQ8TF5b86Mq1Nm+DU1I9cAR hyRvEDAo9ujZaaaO6/8RgedljNElGD9+eMUwXcx+BNeNzG/cstav6oMMA0kf203f9if2 M0zA==
MIME-Version 1.0
X-Received by 10.52.65.238 with SMTP id a14mr13567976vdt.24.1370225150067; Sun, 02 Jun 2013 19:05:50 -0700 (PDT)
In-Reply-To <n4mdnZkIOrRTRjbMnZ2dnUVZ5gOdnZ2d@giganews.com>
References <BLU176-W12FAFEA3C7AFD687855E04D7970@phx.gbl> <mailman.2336.1369790616.3114.python-list@python.org> <ko54sm$c5b$2@reader1.panix.com> <mailman.2361.1369839938.3114.python-list@python.org> <n4mdnZkIOrRTRjbMnZ2dnUVZ5gOdnZ2d@giganews.com>
Date Mon, 3 Jun 2013 12:05:49 +1000
Subject Re: Python #ifdef
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.2573.1370225159.3114.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1370225159 news.xs4all.nl 15880 [2001:888:2000:d::a6]:56825
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46751

Show key headers only | View raw


On Mon, Jun 3, 2013 at 9:57 AM, Erik Max Francis <max@alcyone.com> wrote:
> On 05/29/2013 08:05 AM, Chris Angelico wrote:
>>
>> It's not a bad tool. I used it as a sort of PHP preprocessor, because
>> requirements at work had me wanting to have a source file defining a
>> PHP class and having an autogenerated section in the middle of that
>> class. PHP's 'include' directive doesn't work for that. Of course, had
>> we been using a better language, that wouldn't have been an issue (and
>> it stopped being an issue when we improved the design and stopped
>> using that class system, too, though I retained the makefile
>> directives about building .php.m4 -> .php files). But still, GNU M4 is
>>
>> a decent piece of technology.
>
>
> Agreed.  The terror that most people feel when hearing "m4" is because m4
> was associated with sendmail, not because m4 was inherently awful. It has
> problems, but you'd only encounter them when doing something _very_
> abstract.

Ah. I actually wasn't aware of m4's use with sendmail. I first met it
as the aforementioned PHP preprocessor, simply by Googling for
something along the lines of "generic preprocessor". First hit solved
my problems.

ChrisA

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


Thread

Re: Python #ifdef Dan Stromberg <drsalists@gmail.com> - 2013-05-28 18:23 -0700
  Re: Python #ifdef Grant Edwards <invalid@invalid.invalid> - 2013-05-29 14:55 +0000
    Re: Python #ifdef Chris Angelico <rosuav@gmail.com> - 2013-05-30 01:05 +1000
      Re: Python #ifdef Grant Edwards <invalid@invalid.invalid> - 2013-05-29 15:25 +0000
      Re: Python #ifdef Erik Max Francis <max@alcyone.com> - 2013-06-02 16:57 -0700
        Re: Python #ifdef Roy Smith <roy@panix.com> - 2013-06-02 20:23 -0400
        Re: Python #ifdef Skip Montanaro <skip.montanaro@gmail.com> - 2013-06-02 19:29 -0500
        Re: Python #ifdef Chris Angelico <rosuav@gmail.com> - 2013-06-03 12:05 +1000

csiph-web