Formally deprecate urllib.request.urlretrieve() and urllib.request.urlcleanup()
Both urlretrieve() and urlcleanup() were kept for backward compatibility with Python2 but they were never deprecated like urllib.request.URLOpener and urllib.request.FancyURLOpener. Now that Python2 has been definitely sunset, can we raise a deprecation warning so that they can be removed in the future?
Sounds eminently reasonable -- for this kind of stuff, why don't you open a bpo issue? On Mon, May 18, 2020 at 2:46 PM <remi.lapeyre@henki.fr> wrote:
Both urlretrieve() and urlcleanup() were kept for backward compatibility with Python2 but they were never deprecated like urllib.request.URLOpener and urllib.request.FancyURLOpener.
Now that Python2 has been definitely sunset, can we raise a deprecation warning so that they can be removed in the future? _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BVLC52... Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
Thanks! I wasn't sure whether I was missing something as they were not deprecated at the same time as URLOpener so I thought I would ask here before opening a useless issue. Sorry for the noise if this not an appropriate usage of this list.
Well it’s always possible that you’ll get an answer saying these should not be deprecated. How can you be sure they were only kept for Py 2 compatibility? On Mon, May 18, 2020 at 15:15 <remi.lapeyre@henki.fr> wrote:
Thanks!
I wasn't sure whether I was missing something as they were not deprecated at the same time as URLOpener so I thought I would ask here before opening a useless issue. Sorry for the noise if this not an appropriate usage of this list. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/FCKRN4... Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido (mobile)
The doc says "The following functions and classes are ported from the Python 2 module urllib (as opposed to urllib2). They might become deprecated at some point in the future."
participants (2)
-
Guido van Rossum
-
remi.lapeyre@henki.fr