[Python-Dev] urlparse brokenness
abo at minkirri.apana.org.au
Thu Nov 24 11:09:34 CET 2005
On Tue, 2005-11-22 at 23:04 -0600, Paul Jimenez wrote:
> It is my assertion that urlparse is currently broken. Specifically, I
> think that urlparse breaks an abstraction boundary with ill effect.
> In writing a mailclient, I wished to allow my users to specify their
> imap server as a url, such as 'imap://user:password@host:port/'. Which
> worked fine. I then thought that the natural extension to support
FWIW, I have a small addition related to this that I think would be
handy to add to the urlparse module. It is a pair of functions
"netlocparse()" and "netlocunparse()" that is for parsing and unparsing
"user:password at host:port" netloc's.
Feel free to use/add/ignore it...
Donovan Baarda <abo at minkirri.apana.org.au>
More information about the Python-Dev