[Python-Dev] Copying cgi.parse_qs() to the urllib.parse module

Georg Brandl g.brandl at gmx.net
Sun May 11 09:00:10 CEST 2008


Fred Drake schrieb:
> On May 10, 2008, at 11:49 PM, Guido van Rossum wrote:
>> Works for me. The other thing I always use from cgi is escape() --
>> will that be available somewhere else too?
> 
> 
> xml.sax.saxutils.escape() would be an appropriate replacement, though  
> the location is a little funky.

Ideally it would be xml.escape(). Perhaps there are more of these generally-
useful XML thingies to put there?

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list