Message61094
| Author |
dyoo |
| Recipients |
| Date |
2002年08月26日.18:24:42 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
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! |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年01月20日 09:59:21 | admin | link | issue600362 messages |
| 2008年01月20日 09:59:21 | admin | create |
|