On Tue, 23 Feb 2021 at 02:13, Soni L. <fakedme...@gmail.com> 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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ISG7IASKULB4SP7TW5GC7I5BUIEDYO4E/ Code of Conduct: http://python.org/psf/codeofconduct/