Author mark.dickinson
Recipients ammar2, brandtbucher, ezio.melotti, mark.dickinson, michael.foord, mkarotsieris, petr.viktorin, r.david.murray, rbcollins, serhiy.storchaka, steven.daprano, terry.reedy
Date 2019-11-07.18:13:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

> A correct failure message, correct both as English and Python, should be something like 'bool(x) is not True'.  I see 'x is not true' as an informal English equivalent of the full claim.

I'm not clear whether you're suggesting having something like "bool(x) is not True" be the actual failure message, but if you are, that makes a lot of sense to me. (My current advice to coworkers is always to include the "msg" attribute when using assertTrue and assertFalse, because the default message tends to be spectacularly unhelpful.)

-1 on introducing the terms "truthy" and "falsy" (or "falsey"?) into this one corner of Python. Given that those terms don't seem to be used elsewhere in the codebase, I'd expect introducing them here to cause more confusion, rather than less.
Date User Action Args
2019-11-07 18:13:43mark.dickinsonsetrecipients: + mark.dickinson, terry.reedy, rbcollins, ezio.melotti, steven.daprano, r.david.murray, michael.foord, petr.viktorin, serhiy.storchaka, ammar2, brandtbucher, mkarotsieris
2019-11-07 18:13:43mark.dickinsonsetmessageid: <>
2019-11-07 18:13:43mark.dickinsonlinkissue38706 messages
2019-11-07 18:13:43mark.dickinsoncreate