[issue22843] doc error: 6.2.4. Match Objects

Ben Finney report at bugs.python.org
Wed Nov 12 18:45:55 CET 2014


Ben Finney added the comment:

The current wording of the passage “Match objects always have a boolean value of True” implies that the value compares equal to the ‘True’ constant. That implication is incorrect.

I disagree with R. David Murray; if we want to say that a value is considered true *in a boolean context*, that's very different from saying it has the “True” value.

Georg, “evaluates true in a boolean context” has the meaning you're seeking; it is chosen precisely because it does *not* imply equality to the True constant.

----------
nosy: +bignose

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22843>
_______________________________________


More information about the Python-bugs-list mailing list