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

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Apr 10 02:46:17 EDT 2016

Guido van Rossum wrote:
> Let me pronounce something here. This change is not worth the amount
> of effort and pain a deprecation would cause everyone. Either we
> change this quietly in 3.6 (adding it to What's New etc. of course) or
> we don't do it at all.

I'm having trouble seeing why it should be done at all.
What actual problem would it be solving? Does anyone
desperately want to be able to spell boolean negation
as ~b instead of not b?


More information about the Python-ideas mailing list