Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.150 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.70; '*S*': 0.00; 'subject:Python': 0.06; 'python': 0.11; '#ifdef': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'googling': 0.16; 'guessing': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'first.': 0.19; 'mon,': 0.24; 'posts': 0.26; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'skip:- 40': 0.29; '[1]': 0.29; 'am,': 0.29; 'url:code': 0.29; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; "i'm": 0.30; '(which': 0.31; 'went': 0.31; 'getting': 0.31; 'comments': 0.31; 'lines': 0.31; '(maybe': 0.31; 'date:': 0.34; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; "didn't": 0.36; 'behind': 0.37; 'email addr:python.org': 0.37; 'received:209': 0.37; 'generic': 0.38; 'to:addr:python-list': 0.38; 'subject:': 0.39; '(from': 0.39; 'to:addr:python.org': 0.39; 'problems.': 0.60; 'simply': 0.61; 'first': 0.61; 'email addr:gmail.com': 0.63; 're:': 0.63; 'url:p': 0.64; 'email name:python-list': 0.65; 'between': 0.67; 'contemplated': 0.84; '+1000': 0.91; 'carlos': 0.91; 'this;': 0.91; '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=Gzy9zqGpeQM5ThYam3nYaNbj5oyOFBT3FMZUWLQ6kvs=; b=Lms5MkJrOPQUmcM7Qr5MmeccdyI5mJ8dDzCQbeEx9ZZ5g7/A6NNetzsQCrxl+VnuYB DsShUHiwaRwbHQ16e8iRiL9IQDc5hEaszRpGgV/qwjzMpKMktaojr2vtNgTltmGvCLsV zvaM88cbjYlA2MPKtsI7i8D4o5qacqLOvlsEVyzOhoCmZj8GYf3HvBV8pqlEjnoqvdSI x1DjJTgYuMn92Tdck3JsdescTDZzew2GbWhNz2P3CifeQaUdum0ETUW5evoX3yeA7DYh zmyuP/yRUqljOFgz0HNUKVXUiGqn8XLlOJo6ttTYm1bv+flgNtw4pNoohd2dtImLTzwV G4vA== MIME-Version: 1.0 X-Received: by 10.52.117.16 with SMTP id ka16mr8631507vdb.43.1371069742126; Wed, 12 Jun 2013 13:42:22 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 Jun 2013 06:42:22 +1000 Subject: Re: Python #ifdef From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371069744 news.xs4all.nl 15930 [2001:888:2000:d::a6]:37560 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47849 On Tue, Jun 4, 2013 at 8:18 AM, Carlos Nepomuceno wrote: > ---------------------------------------- >> Date: Mon, 3 Jun 2013 12:05:49 +1000 >> Subject: Re: Python #ifdef >> From: rosuav@gmail.com >> To: python-list@python.org > [...] >> 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 > > Why didn't you use something like EZT[1]? > > [1] https://code.google.com/p/ezt/ I'm a bit behind getting to this; I think some python-list posts got stuck somewhere (maybe in the news->list gateway?). Anyway: The reason I didn't was simply that m4 came up first. I was familiar with the C preprocessor and PPWizard (which is designed for HTML), and simply went looking for a generic one. And yes, I had seriously contemplated using the C preprocessor (from gcc), but there was a reason not to (don't remember now, but I'm guessing it'll be the conflict between hash comments in PHP and hash directives to cpp). ChrisA