Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Removing PendingDeprecationWarning

Steve Holdensteve at holdenweb.com
Fri Mar 22 05:30:07 EDT 2019


On Fri, Mar 22, 2019 at 8:43 AM Victor Stinner <vstinner at redhat.com> wrote:> Le ven. 22 mars 2019 à 09:16, Inada Naoki <songofacandy at gmail.com> a> écrit :> > > > We have `socket.error` for long time.> > >> > > And it's perfectly fine, no?> > >> >> > Yes.  Waiting 10+ years to remove aliases is fine.>> [...]>> Right now, the maintenance cost is close to zero, whereas removing the> alias would annoy a lot of people who will suddenly no longer be able> to use their legacy code (written for Python 2 long time ago, but only> ported to Python 3 recently). Getting a hard AttributeError exception> is different than getting a silent DeprecationWarning :-)>Quite. Why expend the effort on a development that will cause unnecessarypain?Generally speaking, end-users will live their lives in blissful ignoranceof [Pending]DeprecationWarning and should be allowed to do so. When adeveloper wants to migrate them to more recent versions of Python there's achance that warnings will be enabled and examined, but it's by no meanscertain.I suspect the real value of the warnings is so that the dev team can shrugtheir shoulders when someone complains a feature has gone missing after tenyears in deprecated status. This is the price of having them normallysilent, which is certainly worth any trouble it causes by refusing tohassle innocent non-developers with warnings they can do nothing about.-------------- next part --------------An HTML attachment was scrubbed...URL: <http://mail.python.org/pipermail/python-dev/attachments/20190322/040e54e4/attachment.html>


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp