[Python-Dev] Removing PendingDeprecationWarning (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sun Mar 24 07:57:46 EDT 2019


On Fri, 22 Mar 2019 at 12:45, Inada Naoki <songofacandy at gmail.com> wrote:

Hi, all. I'm thinking about removing PendingDeprecationWarning. (previous discussion: https://discuss.python.org/t/pendingdeprecationwarning-is-really-useful/1038) It was added "not be printed by default" version of DeprecationWarning. But DeprecationWarning is not printed by default now.

No, this was covered in PEP 565, and PendingDeprecationWarning was explicitly kept as a way of opting out of the revised semantics of DeprecationWarning.

In Python 3.7 and above, the semantics are:

PEP section: https://www.python.org/dev/peps/pep-0565/#additional-use-case-for-futurewarning

The documentation was also updated to match:

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list