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 josh.r
Recipients docs@python, josh.r, jpotelle
Date 2015-01-03.00:12:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420243953.55.0.0422394423509.issue23153@psf.upfronthosting.co.za>
In-reply-to
Content
A few questions/comments:

1. How would the reference clarify matters?

2. "Most languages" is perhaps overstating the matter. Lower level languages and strictly typed languages tend to return a boolean value, but many high level scripting languages (among them Perl, Python and JavaScript) return the last value evaluated.

3. Referencing the bool() constructor doesn't seem like it would add much, and might encourage the wrong behaviors; idiomatic Python rarely bothers to coerce to True/False because it's unnecessary extra work when an if or while condition can simply evaluate the "truthiness" of the value being tested without coercion. I kind of like the fact that it omits use of bool(), because down that road lies madness (if bool(a or b) == False: madness).
History
Date User Action Args
2015-01-03 00:12:33josh.rsetrecipients: + josh.r, docs@python, jpotelle
2015-01-03 00:12:33josh.rsetmessageid: <1420243953.55.0.0422394423509.issue23153@psf.upfronthosting.co.za>
2015-01-03 00:12:33josh.rlinkissue23153 messages
2015-01-03 00:12:32josh.rcreate