should urlparse return user and pass in separate components?

metaperl metaperl at gmail.com
Thu Sep 7 16:56:28 EDT 2006


The urlparse with Python 2.4.3 includes the user and pass in the site
aspect of its parse:

>>> scheme, site, path, parms, query, fid = urlparse.urlparse("http://bill:james@docs.python.org/lib/module-urlparse.html")

>>> site
'bill:james at docs.python.org'


I personally would prefer that it be broken down a bit further. What
are existing opinions on this?




More information about the Python-list mailing list