I didn’t mean to promote
yarl), but to take the ideas and include an
URL class as part of
furl (don’t know if
yarl) states it supports
base_url / path_component.
I should have given more arguments for the proposal for
Basically, newcomers to things about the Web will almost always do “string arithmetic” (
+, etc.) over URLs, and that is always risky, and often wrong.
pathlib.Path-like class in
urlib.URL would almost certainly make the above go away in time (and make the Python-run Web a safer place too).