[Python-Dev] Python 1.7 tokenization feature request
Moshe Zadka <firstname.lastname@example.org>
Tue, 14 Mar 2000 03:14:09 +0200 (IST)
On Mon, 13 Mar 2000 email@example.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 < 10:
> print i & 1
> i = i + 1
> which would in turn make it easier to embed Python in XML such as
> PMZ, and so on.
Why? Whatever XML parser you use will output "i<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 <firstname.lastname@example.org>.
http://www.linux.org.il -- we put the penguin in .com