5 ms·
From the proposal to remove urllib linked in the article: https://lwn.net/ml/python-dev/CABqyc3wGDmdnDjrhYh0SxT_Tgr5M8Za3JTw4CUapnSOVQ-ci3A@mail.gmail.com/ htt
by djbeadle 5y ago
From the proposal to remove urllib linked in the article:
https://lwn.net/ml/python-dev/CABqyc3wGDmdnDjrhYh0SxT_Tgr5M8Za3JTw4CUapnSOVQ-ci3A@mail.gmail.com/ https://lwn.net/ml/python-dev/CABqyc3wGDmdnDjrhYh0SxT_Tgr5M8...
From: Victor Stinner <vstinner-AT-python.org>
To: Python Dev <Python-Dev-AT-python.org>
Subject: [Python-Dev] It's now time to deprecate the stdlib urllib module
Date: Sun, 06 Feb 2022 15:08:40 +0100
Message-ID: <CABqyc3wGDmdnDjrhYh0SxT_Tgr5M8Za3JTw4CUapnSOVQ-ci3A@mail.gmail.com>
Hi,
I propose to deprecate the urllib module in Python 3.11. It would emit
a DeprecationWarning which warn users, so users should consider better
alternatives like urllib3 or httpx: well known modules, better
maintained, more secure, support HTTP/2 (httpx), etc.
- tyingq 5y agoThose don't come with python though, so the standard library wouldn't have any similar functionality. And both of the suggestions have a direct dependency on urllib. Edit: So who maintains urllib, a dependency for the "better" libraries, if you push it out of python core?
- DangitBobby 5y agoYep. They kind of hint at the end that the real solution is to actually fix urllib. Removing it is a mistake IMO, even if it's for "security reasons" but especially if it's for a bad API. I'd rather it be included and kind of broken than removed.