[Python-Dev] Removing PendingDeprecationWarning
songofacandy at gmail.com
Fri Mar 22 13:37:11 EDT 2019
On Sat, Mar 23, 2019 at 2:26 AM Brett Cannon <brett at python.org> wrote:
> We can't do that as it will break code. Think of code which is having warnings raise exceptions and that are purposefully catching PendingDeprecationWarning but not DeprecationWarning; this change would break that. These classes are part of the public API of the warnings module and so we shouldn't change semantics like that for people who have a specific use for those two different classes regardless of how the stdlib may choose to use them.
Didn't we already do it? socket.error was independent error class.
It became alias of OSError from Python 3.3.
There might be some small troubles. But it was small enough for
Python minor versions, I think.
Inada Naoki <songofacandy at gmail.com>
More information about the Python-Dev