[Python-ideas] Changing the meaning of bool.__invert__
Brett Cannon
brett at python.org
Fri Apr 8 13:39:21 EDT 2016
On Fri, 8 Apr 2016 at 08:44 Guido van Rossum <guido at python.org> wrote:
> DeprecationWarning every time you use ~ on a bool? That would still be
> too big a burden on using it the new way.
>
I think proposal would be a DeprecationWarning to flush out/remove all
current uses of ~bool with Python 3.6, and then in Python 3.7 introduce the
new semantics.
-Brett
>
> On Fri, Apr 8, 2016 at 8:27 AM, Random832 <random832 at fastmail.com> wrote:
> >
> >
> > On Fri, Apr 8, 2016, at 11:00, Guido van Rossum wrote:
> >> The thing here is, this change is too small to warrant a __future__
> >> import. So we're either going to introduce it in 3.6 and tell people
> >> about it in case their code might break, or we're never going to do
> >> it. I'm honestly on the fence, but I feel this is a rarely used
> >> operator so changing its meaning is not likely to break a lot of code.
> >
> > What about just having a DeprecationWarning, but no __future__ import?
> > _______________________________________________
> > Python-ideas mailing list
> > Python-ideas at python.org
> > https://mail.python.org/mailman/listinfo/python-ideas
> > Code of Conduct: http://python.org/psf/codeofconduct/
>
>
>
> --
> --Guido van Rossum (python.org/~guido)
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160408/2e7496d6/attachment-0001.html>
More information about the Python-ideas
mailing list