Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46392
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python #ifdef |
| Date | 2013-05-29 15:25 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <ko56m4$e4j$1@reader1.panix.com> (permalink) |
| 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> |
On 2013-05-29, Chris Angelico <rosuav@gmail.com> wrote:
> On Thu, May 30, 2013 at 12:55 AM, Grant Edwards <invalid@invalid.invalid> wrote:
>> On 2013-05-29, Dan Stromberg <drsalists@gmail.com> wrote:
>>
>>> And in case you still want a preprocessor for Python (you likely don't need
>>> one this time), here's an example of doing this using the venerable m4:
>>> https://pypi.python.org/pypi/red-black-tree-mod . Note the many comments
>>> added to keep line numbers consistent.
>>
>> I was wondering whether or not to mention m4. Since m4 is (in my
>> mind) inextricably linked to RATFOR and sendmail config files I try
>> to avoid thinking about it lest the flashbacks start again...
>
> It's not a bad tool. I used it as a sort of PHP preprocessor,
> [...]
> But still, GNU M4 is a decent piece of technology.
I didn't mean to disparage m4 -- it always seemed well thought out and
useful. It just happens to be associated with unpleasant things for
me. [And it didn't really seem like a good option for the OP's
problem.]
Still, if one really did want a preprocessor for Python programs, m4
would be the first thing I'd look at.
--
Grant Edwards grant.b.edwards Yow! I wonder if I ought
at to tell them about my
gmail.com PREVIOUS LIFE as a COMPLETE
STRANGER?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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