This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients ammar2, brandtbucher, ezio.melotti, michael.foord, mkarotsieris, r.david.murray, rbcollins, serhiy.storchaka, steven.daprano, terry.reedy
Date 2019-11-06.11:48:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573040894.34.0.119271296265.issue38706@roundup.psfhosted.org>
In-reply-to
Content
I pretty strongly dislike 'truthy' and 'falsey'.  They look slangy and https://en.wiktionary.org/wiki/truthy gives the main meaning as 
  (US, colloquial) Only superficially true; ...

The computer language usage is credited to Javascript here and some other sites (with the same meaning as in Python).

To be a bit pedantic, the current failure message for assertTrue(x) appears to be f'{repr(x)} is not true'.

Exception messages are English phrases and sentences, not Python code, so 'is' in exception messages is always the English 'is', as in
  NameError: name 'true' is not defined
I do not see any ambiguity.  Somewhat ironically, the original suggestion 'False is not True', which should better be written '<x> is not True' *could* be misinterpreted as code.

'x does not evaluate to true' strikes me as wrong because in this context, the evaluation by calling bool(x) is to True or False, not 'true' or 'false'.

'assertTrue' is an abbreviation for something like 'assertBoolTrue(x)' or more properly, assert_bool(x)_is_True.  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.  Perhaps this should be better explained somewhere in the doc.  I do not really see 'x is not a true value' as adding anything.

We don't usually change exception messages in bugfix releases unless the message is buggy, as in actively misleading.  I also think making a change would need discussion on pydev.
History
Date User Action Args
2019-11-06 11:48:14terry.reedysetrecipients: + terry.reedy, rbcollins, ezio.melotti, steven.daprano, r.david.murray, michael.foord, serhiy.storchaka, ammar2, brandtbucher, mkarotsieris
2019-11-06 11:48:14terry.reedysetmessageid: <1573040894.34.0.119271296265.issue38706@roundup.psfhosted.org>
2019-11-06 11:48:14terry.reedylinkissue38706 messages
2019-11-06 11:48:13terry.reedycreate