Brett Cannon wrote:
> With PyCon approaching and having other stuff on my plate to deal with
> I want to try to reach a consensus on the whole
> urllib/urllib2/urlparse situation for the stdlib reorg in Python 3.0
> and get it settled.
> 
> So, two options for people to show support for.  One is to keep
> everything and get cute with the naming::
> 
>   urlparse -> url.parse
>   urllib -> url.fetch
>   urllib2 -> url.request
> 
> The second option is to ditch urllib, move the handy quoting tools
> into either their own module or into what is currently urllib2::
> 
>   urlparse -> url.parse
>   urllib -> GONE
>   urllib's utility functions -> url.quote
>   urllib2 -> url.request

+0.5 for this second option. But what will happen to all the other names
urllib2 currently imports from urllib that aren't "quotey"?

    from urllib import (unwrap, unquote, splittype, splithost,
         addinfourl, splitport, splitgophertype, splitquery,
         splitattr, ftpwrapper, noheaders, splituser, splitpasswd,
splitvalue)

I wouldn't mind if "urllib's utility functions" just moved into
url.parse. Then we'd have one module for parsing (and unparsing) URL's
and one for actually using them.


Robert Brewer
[EMAIL PROTECTED]

_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to