This function does not handle multiple parameters with the same name.
It will arbitrarily choose one value and discard the others.
- *Debug mode:* if a pseudo-parameter
'_debug ' with a true value is passed,
+ *Debug mode:* if a pseudo-parameter _debug is passed,
return a tuple: ```` is the URL without query string or fragment,
```` is the final query parameters as a dict, and ```` is the
fragment part of the original URL or the empty string.
>>> update_params("foo", new1="NEW1")
>>> update_params("foo?p=1", p="2")
- """Partial object, which will be in Python 2.5"""
+ A partial function object.
+ Equivalent to functools.partial, which was introduced in Python 2.5.
def __init__(*args, **kw):