A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-March/002596.html below:

[Python-Dev] Python 1.7 tokenization feature request

[Python-Dev] Python 1.7 tokenization feature request [Python-Dev] Python 1.7 tokenization feature requestMoshe 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.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4