[Python-Dev] urlparse brokenness

Mike Brown mike at skew.org
Thu Nov 24 06:38:39 CET 2005

Paul Jimenez wrote:
> So I propose that urlsplit, the main offender, be replaced with something
> that looks like:
> def urlsplit(url, scheme='', allow_fragments=1, default=('','','','','')):

+1 in principle.

You should probably do a
    global _parse_cache

and add 'is not None' after 'if cached'.

More information about the Python-Dev mailing list