bool and int

Grant Edwards grant.b.edwards at gmail.com
Sat Jan 28 00:35:11 EST 2023


On 2023-01-27, Mark Bourne <nntp.mbourne at spamgourmet.com> wrote:

> So Python is even flexible enough to be made to deal with insane 
> situations where False is 2!

IIRC, in VMS DCL even numbers were false and odd numbers were true.

In Unix shells, a return code of 0 is true and non-0 is false.

Though that's not really the same environment that Python lives in...


--
Grant


More information about the Python-list mailing list