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'.