[Patches] [ python-Patches-740827 ] add urldecode() method to urllib

SourceForge.net noreply@sourceforge.net
Wed, 21 May 2003 07:25:52 -0700


Patches item #740827, was opened at 2003-05-20 20:43
Message generated for change (Comment added) made by mboedick
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=740827&group_id=5470

Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Boedicker (mboedick)
Assigned to: Nobody/Anonymous (nobody)
Summary: add urldecode() method to urllib

Initial Comment:
Adds a urldecode() method to urllib. The method does
the opposite of urlencode, turns a url-encoded string
into a list of two-tuples of name/value pairs.

----------------------------------------------------------------------

>Comment By: Matthew Boedicker (mboedick)
Date: 2003-05-21 10:25

Message:
Logged In: YES 
user_id=119895

It is not different than cgi.parse_qsl.  Must have missed
that module when I was looking for this functionality.  To
me it seems like urlencode and urldecode (as well as quote,
quote_plus, unquote, etc.) belong in urlparse.  Do you think
it would be valuable to include a pointer to cgi.parse_qsl
in urllib or urllparse?

----------------------------------------------------------------------

Comment By: Brett Cannon (bcannon)
Date: 2003-05-20 23:21

Message:
Logged In: YES 
user_id=357491

How is this different from cgi.parse_sql ?  If it is not different, consider just 
having a wrapper for urldecode that calls cgi.parse_sql .

Do you think urllib is the best place for this?  What about urlparse?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=740827&group_id=5470