A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20171128/bfce21c3/attachment.html below:

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 19, 2017 at 5:40 AM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Eh, numpy does use FutureWarning for changes where the same code will<br>
transition from doing one thing to doing something else without<br>
passing through a state where it raises an error. But that decision<br>
was based on FutureWarning being shown to users by default, not<br>
because it matches the nominal purpose :-). IIRC I proposed this<br>
policy for NumPy in the first place, and I still don't even know if it<br>
matches the original intent because the docs are so vague. "Will<br>
change behavior in the future" describes every case where you might<br>
consider using FutureWarning *or* DeprecationWarning, right?<br>
<br>
We have been using DeprecationWarning for changes where code will<br>
transition from working -> raising an error, and that *is* based on<br>
the Official Recommendation to hide those by default whenever<br>
possible. We've been doing this for a few years now, and I'd say our<br>
experience so far has been... poor. I'm trying to figure out how to<br>
say this politely. Basically it doesn't work at all. What happens in<br>
practice is that we issue a DeprecationWarning for a year, mostly<br>
no-one notices, then we make the change in a 1.x.0 release, everyone's<br>
code breaks, we roll it back in 1.x.1, and then possibly repeat<br>
several times in 1.(x+1).0 and 1.(x+2).0 until enough people have<br>
updated their code that the screams die down. I'm pretty sure we'll be<br>
changing our policy at some point, possibly to always use<br>
FutureWarning for everything.</blockquote><div><br></div><div>Can one of you check that the latest version of PEP 565 gets this right?<br></div><div> </div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4