[Python-Dev] Python 1.7 tokenization feature request

Skip Montanaro skip@mojam.com (Skip Montanaro)
Mon, 13 Mar 2000 15:23:17 -0600 (CST)


    Greg> Once 1.6 is out the door, would people be willing to consider
    Greg> extending Python's token set to make HTML/XML-ish spellings using
    Greg> entity references legal?  This would make the following 100% legal
    Greg> Python:

    Greg> i = 0
    Greg> while i < 10:
    Greg>     print i & 1
    Greg>     i = i + 1

What makes it difficult to pump your Python code through cgi.escape when
embedding it?  There doesn't seem to be an inverse function to cgi.escape
(at least not in the cgi module), but I suspect it could rather easily be
written. 

-- 
Skip Montanaro | http://www.mojam.com/
skip@mojam.com | http://www.musi-cal.com/