PyDocs

Nav

Internet Protocols and Support

urlunparse

urllib.parse

function (source)
  • urlunparse(parts)
  • urlunparse(parts, *, keep_empty)
Put a parsed URL back together again.  This may result in a
slightly different, but equivalent URL, if the URL that was parsed
originally had redundant delimiters, e.g. a ? with an empty query
(the draft states that these are equivalent) and keep_empty is false
or components is the result of the urlparse() call with
missing_as_none=False.
Changed in 3.15
  • 3.15: Added the keep_empty parameter.
0 Examples
No examples for urllib.parse/urlunparse.
See Also
No see-alsos for urllib.parse/urlunparse
0 Notes
No notes for urlunparse