[Python-bugs-list] [ python-Bugs-724751 ] urllib.urlparse has inverse in cgi module

SourceForge.net noreply@sourceforge.net
Thu, 24 Apr 2003 09:26:18 -0700


Bugs item #724751, was opened at 2003-04-20 17:18
Message generated for change (Comment added) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724751&group_id=5470

Category: Documentation
>Group: Python 2.2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: John J Lee (jjlee)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: urllib.urlparse has inverse in cgi module

Initial Comment:
The fact that urllib.urlparse has its inverse in the 
cgi module is not mentioned in the urllib docs. 
 
The patch adds a link to the cgi module, pointing out 
that the cgi.parse_qs and cgi.parse_qsl functions 
are the inverse of urllib.urlparse (if you ignore the 
precise types involved -- urllib.urlparse is many-to-one 
in that respect, so there isn't really a proper inverse 
function). 
 

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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-04-24 12:26

Message:
Logged In: YES 
user_id=3066

Looking at the patch, I see you mean the urllib.urlencode()
function.
I've commited a modified version of your patch and added a
reference to urllib.urlencode() from cgi.parse_qsl().

Fixed for Python 2.2.3, 2.3:

Doc/lib/libcgi.tex 1.39, 1.35.4.4
Doc/lib/liburllib.tex 1.48, 1.40.8.3

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

Comment By: John J Lee (jjlee)
Date: 2003-04-20 17:20

Message:
Logged In: YES 
user_id=261020

Oops, forgot to attach patch. 

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

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