On Tue, 23 Feb 2021 at 02:13, Soni L. <[email protected]> wrote:
>
> Currently ~False is -1 and ~True is -2. Would be nicer if ~bool was the
> same as not bool.

I suspect this is more for NumPy people. I remember that one of my
bosses used `~a` on a bool because he started with NumPy and had a
limited knowledge of Python.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/ISG7IASKULB4SP7TW5GC7I5BUIEDYO4E/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to