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

2008-05-12 Thread Tom Pinckney
Is there any thought to extending escape to escape / unescape to by default handle characters other than <, >, and &? At a minimum it should handle arbitrary &xxx; values. Ideally, it would also handle common other symbolic names besides < > etc. HTML from common web sites such as nytimes.c

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

2008-05-12 Thread Tony Nelson
At 11:56 PM -0400 5/10/08, Fred Drake wrote: >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 loc

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

2008-05-11 Thread Brett Cannon
On Sun, May 11, 2008 at 7:02 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 6:50 PM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: >> On Sun, May 11, 2008 at 06:39:02PM -0700, Brett Cannon wrote: >>> cgi.escape() to the html package somewhere (either 'html', >>> 'html.parser'

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

2008-05-11 Thread Guido van Rossum
On Sun, May 11, 2008 at 6:50 PM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 06:39:02PM -0700, Brett Cannon wrote: >> cgi.escape() to the html package somewhere (either 'html', >> 'html.parser' which is currently HTMLParser, or some new module; > > html.parser.escape() see

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

2008-05-11 Thread Oleg Broytmann
On Sun, May 11, 2008 at 06:39:02PM -0700, Brett Cannon wrote: > cgi.escape() to the html package somewhere (either 'html', > 'html.parser' which is currently HTMLParser, or some new module; html.parser.escape() seems a bit backward; html.escape() fits the best! Oleg. -- Oleg Broytmann

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

2008-05-11 Thread Brett Cannon
On Sun, May 11, 2008 at 6:35 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 6:34 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: >> On Sun, May 11, 2008 at 6:23 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >>> On Sun, May 11, 2008 at 5:01 PM, Brett Cannon <[EMAIL PROTECTED

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

2008-05-11 Thread Guido van Rossum
On Sun, May 11, 2008 at 6:34 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 6:23 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >> On Sun, May 11, 2008 at 5:01 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: >>> On Sun, May 11, 2008 at 4:43 PM, Guido van Rossum <[EMAIL PROTECTED

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

2008-05-11 Thread Brett Cannon
On Sun, May 11, 2008 at 6:23 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 5:01 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: >> On Sun, May 11, 2008 at 4:43 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >>> On Sun, May 11, 2008 at 12:00 AM, Georg Brandl <[EMAIL PROTECTE

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

2008-05-11 Thread Guido van Rossum
On Sun, May 11, 2008 at 5:01 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 4:43 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >> On Sun, May 11, 2008 at 12:00 AM, Georg Brandl <[EMAIL PROTECTED]> wrote: >>> Fred Drake schrieb: On May 10, 2008, at 11:49 PM, Guido

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

2008-05-11 Thread Brett Cannon
On Sun, May 11, 2008 at 4:43 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 12:00 AM, Georg Brandl <[EMAIL PROTECTED]> wrote: >> 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

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

2008-05-11 Thread Guido van Rossum
On Sun, May 11, 2008 at 12:00 AM, Georg Brandl <[EMAIL PROTECTED]> wrote: > 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.saxu

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

2008-05-11 Thread Brett C.
-Brett [from his iPod touch] On 10-May-08, at 20:49, "Guido van Rossum" <[EMAIL PROTECTED]> wrote: Works for me. The other thing I always use from cgi is escape() -- will that be available somewhere else too? It can be. =) -Brett On Sat, May 10, 2008 at 8:30 PM, Brett Cannon <[EMAIL P

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

2008-05-11 Thread Georg Brandl
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. Ide

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

2008-05-10 Thread Fred Drake
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. -Fred -- Fred Drake

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

2008-05-10 Thread Guido van Rossum
Works for me. The other thing I always use from cgi is escape() -- will that be available somewhere else too? On Sat, May 10, 2008 at 8:30 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: > I just realized that PEP 3108 was missing one proposal from the stdlib > SIG (originally proposed by Facundo Bati

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

2008-05-10 Thread Brett Cannon
I just realized that PEP 3108 was missing one proposal from the stdlib SIG (originally proposed by Facundo Batista) of copying the cgi.parse_qs() function over to the new urllib.parse module so that people no longer need to import the cgi module just for that one parsing function. Does anyone objec