[docs] [issue16011] "in" should be consistent with return value of __contains__

R. David Murray report at bugs.python.org
Wed Feb 8 07:08:18 EST 2017


R. David Murray added the comment:

You've got the right idea, but you are repeating yourself.  Keep it as short as possible while still conveying the correct information.  "coerce to boolean" is better than "apply bool", because the code may not in fact be using the bool function to do it.  Your "equivalent to" phrase would be OK as an alternative, but you only need to show the equivalence, no need to also explain it in words.

----------

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


More information about the docs mailing list