Open
Description
Feature or enhancement
A URL class located within urllib that would make building, parsing and modifying URLs simpler and more intuitive.
Pitch
Recently I have encountered a need to build a URL dynamically in an app I wrote. Despite its namesake, the standard library urllib did not provide a simple way to do this. Its functions within urllib.parse are relatively unintuitive and required my own (at the time, quick, dirty and simple) wrappers to be truly useful. There are, as I later discovered and as is probably to be expected, third party solutions to the problem, but the fact that there was no such solution right in urllib genuinely surprised me.
Previous discussion
https://discuss.python.org/t/an-urllib-parse-url-class/1789 - A 2019 discussion of this idea that I found.