[Python-Dev] Re: It's now time to deprecate the stdlib urllib module

2022年2月07日 02:25:56 -0800

> Christian proposes that having a simpler scope rewrite of it might be nice, 
> but I think disruption to the world and loss of trust in Python would be 
> similar either way.
Please don't remove urllib. There are mountains of code that rely on it. A 
much better idea, IMO, would be to add a new modern API to http.client, where 
http functionality properly belongs. Maybe a function signature like this: 
http.client.get(url, user_agent = None, basic_auth=(None, None), 
custom_headers=None). That would one line to cover many use basic use cases, 
including user agent and basic auth.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/EV7R35OMQ7QWY7Y744FX7Y7VI7AO5CWX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to