Author Mark.Shannon
Recipients Mark.Shannon, Mohamed_Atef, ethan.furman, gregory.p.smith, gvanrossum, pablogsal, serhiy.storchaka, stestagg
Date 2021-01-12.16:39:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610469565.56.0.666488247152.issue42899@roundup.psfhosted.org>
In-reply-to
Content
> How do we know `x` is falsey without calling `bool()` on it?

We don't, but in `if x: pass`, it doesn't matter.
Discounting side-effects in __bool__, the code does nothing regardless of the value of `x`.
History
Date User Action Args
2021-01-12 16:39:25Mark.Shannonsetrecipients: + Mark.Shannon, gvanrossum, gregory.p.smith, ethan.furman, serhiy.storchaka, Mohamed_Atef, pablogsal, stestagg
2021-01-12 16:39:25Mark.Shannonsetmessageid: <1610469565.56.0.666488247152.issue42899@roundup.psfhosted.org>
2021-01-12 16:39:25Mark.Shannonlinkissue42899 messages
2021-01-12 16:39:25Mark.Shannoncreate