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

Serhiy Storchaka storchaka at gmail.com
Sat Apr 9 14:27:57 EDT 2016


On 09.04.16 11:07, Terry Reedy 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.

For such cases there is FutureWarning.




More information about the Python-ideas mailing list