[Python-Dev] Python 1.7 tokenization feature request

Moshe Zadka Moshe Zadka <mzadka@geocities.com>
Tue, 14 Mar 2000 03:14:09 +0200 (IST)

On Mon, 13 Mar 2000 gvwilson@nevex.com wrote:

> Once 1.6 is out the door, would people be willing to consider extending
> Python's token set to make HTML/XML-ish spellings using entity references
> legal?  This would make the following 100% legal Python:
> i = 0
> while i &lt; 10:
>     print i &amp; 1
>     i = i + 1
> which would in turn make it easier to embed Python in XML such as
> config-files-for-whatever-Software-Carpentry-produces-to-replace-make,
> PMZ, and so on.

Why? Whatever XML parser you use will output "i&lt;1" as "i<1", so 
the Python that comes out of the XML parser is quite all right. Why change
Python to do an XML parser job?
Moshe Zadka <mzadka@geocities.com>. 
http://www.linux.org.il -- we put the penguin in .com