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

Terry Reedy tjreedy at udel.edu
Sat Apr 9 04:07:04 EDT 2016


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.


-- 
Terry Jan Reedy



More information about the Python-ideas mailing list