PyDocs

Nav

Internet Protocols and Support

urldefrag

urllib.parse

function (source)
  • urldefrag(url, *, missing_as_none=False)
Removes any existing fragment from URL.

Returns a tuple of the defragmented URL and the fragment.  If
the URL contained no fragments, the second element is the
empty string or None if missing_as_none is True.
Changed in 3.2, 3.15
  • 3.2: Result is a structured object rather than a simple 2-tuple.
  • 3.15: Added the missing_as_none parameter.
0 Examples
No examples for urllib.parse/urldefrag.
See Also
No see-alsos for urllib.parse/urldefrag
0 Notes
No notes for urldefrag