A comp.lang.python code snippet archive?

Emile van Sebille emile at fenx.com
Mon Mar 6 06:37:48 EST 2000


Watch for the colon whitespace hash comment lines!

How to know where it starts? Look above for where it
starts compiling?

How to know where it stops? When it stops compiling?

If-this-works-we-could-run-arbitrary-text-files-too-ly y'rs

Emile van Sebille
emile at fenx.com
-------------------


----- Original Message -----
From: Remco Gerlich <scarblac-spamtrap at pino.selwerd.nl>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Monday, March 06, 2000 3:12 AM
Subject: Re: A comp.lang.python code snippet archive?


>
> How about this: look for lines that start with a keyword and end with
:,
> with the next line indented more than the current line.
>
> That should catch almost all Python, and almost no text.
>
>
> indentation-to-the-rescue-ly-y'rs,
>
> --
> Remco Gerlich,  scarblac at pino.selwerd.nl
>   1:11pm  up  1:32,  4 users,  load average: 0.18, 0.26, 0.21
> --
> http://www.python.org/mailman/listinfo/python-list
>






More information about the Python-list mailing list