[Python-Dev] Python 1.7 tokenization feature request (original) (raw)
Moshe Zadka Moshe Zadka mzadka@geocities.com
Tue, 14 Mar 2000 03:14:09 +0200 (IST)
- Previous message: [Python-Dev] Python 1.7 tokenization feature request
- Next message: [Python-Dev] Python 1.7 tokenization feature request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 < 10: print i & 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<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.oreilly.com/news/prescod_0300.html http://www.linux.org.il -- we put the penguin in .com
- Previous message: [Python-Dev] Python 1.7 tokenization feature request
- Next message: [Python-Dev] Python 1.7 tokenization feature request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]