Josh Rosenberg added the comment:

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).

----------
nosy: +josh.r

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to