[Python-bugs-list] urlparse and HTTP parameters (PR#206)

mnot@akamai.com mnot@akamai.com
Tue, 15 Feb 2000 17:10:09 -0500 (EST)


Full_Name: Mark Nottingham
Version: 1.5.2
OS: All
Submission from: fw.west.akamai.com (63.196.237.2)


Python parses urls into the following data structure:
  (scheme, netloc, path, params, query, fragment)
and references RFC1808. 1808 has been updated by RFC2396, which allows
on each path segment, not just the last. This would imply a data structure
either like this:
  (scheme, netloc, path, query, fragment)
or this:
  (scheme, netloc, [(segment, parameters)...], query, fragment)

Rather than updating urlparse.py (and introducing incompatibility), it may be
nice to introduce a new class (say, uriparse.py) that implements 2396. If
there's enough interest, I may give it a go...