osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Removing PendingDeprecationWarning


On 2019-03-22 11:33, Serhiy Storchaka wrote:
> What is wrong with PendingDeprecationWarning?

It serves the same purpose as DeprecationWarning: it indicates that a 
feature is planned to be removed in the future. There is no point in 
having two warnings with exactly the same meaning.

> What problem do you want
> to solve at the cost of removing this feature?

1. Typically, a PendingDeprecationWarning is meant to be promoted to a 
DeprecationWarning in some future release. It takes a minor effort to do 
that and it may be forgotten. It's just simpler to use 
DeprecationWarning from the start.

2. Whenever somebody wants to deprecate something, that person has to 
decide between the two. That's just more complicated than it needs to be.

And I can easily ask the converse question: what problem do you want to 
solve by including that feature?