[Python-ideas] Changing the meaning of bool.__invert__

Koos Zevenhoven k7hoven at gmail.com
Sat Apr 9 07:16:47 EDT 2016


On Sat, Apr 9, 2016 at 11:07 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 4/8/2016 11:42 AM, Guido van Rossum wrote:
>>
>> DeprecationWarning every time you use ~ on a bool?
>
> A DeprecationWarning should only be in the initial version of
> bool.__invert__, which initially would return int.__invert__ after issuing
> the warning that we plan to change the meaning.
>

Maybe the right warning type would be FutureWarning.

-Koos


More information about the Python-ideas mailing list