bpo-36404: recommend DeprecationWarning over PendingDeprecationWarning by methane · Pull Request #12505 · python/cpython (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In PEP 565, you used async keyword example. It is really nice example to demonstrate what difference PEP 565 introduces.

On the other hand, most reader of this document will not want to add new keyword. Most of them just want to deprecate their APIs that are not in __main__.
And, as you know, calling deprecated APIs from __main__ doesn't show warning by default.

So there are no much difference.