Yeah, this was to counter a bug? in urlparse.defrag, when an empty uri was passed in it returned a tuple of empty byte strings rather than unicode strings, which could not be concatenated with the unicode '#'. If it returns '' when the uri given was empty is that better?