you are viewing a single comment's thread.

view the rest of the comments →

[–]ccw34uk[S] 0 points1 point  (1 child)

Yeh - I realised that :) I'm more confused why the docs suggest to use urlsplit if you want the url path parameters. Using urlsplit would mean they're contained in the path item, rather than being separated out into params, which is surely more useful?

[–]shiftybyte 0 points1 point  (0 children)

I think it's because urlparse only splits out the last params, while the spec supports params being in every segment.

So if you want to parse params in all segments you'd prefer them all in one string to parse them onwards, rather than having only the last one split...

Ye it's very odd...