<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2019 at 6:19 PM Inada Naoki <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Mar 23, 2019 at 3:02 AM Brett Cannon <<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>> wrote:<br>
><br>
>><br>
>> There might be some small troubles.  But it was small enough for<br>
>> Python minor versions, I think.<br>
><br>
><br>
>  I don't think it's worth the cost to users. We can just choose to stop using it in the stdlib and not use PendingDeprecationWarning. And if people want to force others to define their own PendingDeprecationWarning by deprecating that's fine, but the aliasing where it could cause unintended exception swallowing for something related to breaking changes seems unnecessarily risky to me simply because we don't want to ask users to update their code in a backwards-compatible fashion.<br>
<br>
I still can't believe there are real world usage of PendingDeprecationWarning<br>
other than warnings.warn() and assertRaises().<br></blockquote><div><br></div><div>I've made the same mistake of assuming something that made no sense to me wouldn't make sense to anyone else and I have been proven wrong nearly every time. ;)</div><div><br></div><div>-Brett<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
But I'm OK to not removing actual class.<br>
<br>
Stop using it in stdlib reduces maintenance cost like this:<br>
<a href="https://github.com/python/cpython/pull/12494/files" rel="noreferrer" target="_blank">https://github.com/python/cpython/pull/12494/files</a><br>
<br>
And deprecation in document reduces learning cost.<br>
People can skip reading and understanding document of PendingDeprecatedWarning.<br>
<br>
Keeping PendingDeprecationWarning class for several years is very<br>
low cost compared to these cost.<br>
<br>
Regards,<br>
-- <br>
Inada Naoki  <<a href="mailto:songofacandy@gmail.com" target="_blank">songofacandy@gmail.com</a>><br>
</blockquote></div></div>