Message61094
The location of the url-handling functions are
distributed among several modules, and it would be good
to consolidate them to make them easier to find.
The urlparse.urlparse() function splits an url into its
relative pieces. However, it does not parse out the
query string into a dictionary --- that role is played
by cgi.parse_qs(). And to convert a dictionary back to
a query string, the programmer needs to know that that
function is in urllib.urlencode.
It would be nice to have cgi.parse_qs() and
urllib.urlencode() in a unified place, within in the
urlparse module if appropriate. This will help reduce
the amount of hunting-and-pecking that beginners do
when they're trying to deal with URLs.
See:
http://mail.python.org/pipermail/tutor/2002-August/016823.html
for more information.
Thanks! |
|
Date |
User |
Action |
Args |
2008-01-20 09:59:21 | admin | link | issue600362 messages |
2008-01-20 09:59:21 | admin | create | |
|