PyDocs

Nav

Internet Protocols and Support

urlunsplit

urllib.parse

function (source)
  • urlunsplit(parts)
  • urlunsplit(parts, *, keep_empty)
Combine the elements of a tuple as returned by urlsplit() into a
complete URL as a string. The data argument can be any five-item iterable.
This may result in a slightly different, but equivalent URL, if the URL that
was parsed originally had unnecessary delimiters (for example, a ? with an
empty query; the RFC states that these are equivalent) and keep_empty
is false or components is the result of the urlsplit() call with
missing_as_none=False.
Changed in 3.15
  • 3.15: Added the keep_empty parameter.
0 Examples
No examples for urllib.parse/urlunsplit.
See Also
No see-alsos for urllib.parse/urlunsplit
0 Notes
No notes for urlunsplit