[docs] Another strange expression, 2

Vrancken, J.L.M. (Jos) j.l.m.vrancken at hr.nl
Tue Jul 10 05:24:51 EDT 2018


True == False in (True, False)

This expression gives False,
whereas in any interpretation, it should be True:

(True == False)  in (True, False)        returns True

True == (False in (True, False))        returns True

All this in Python 3.7.

Is something wrong or am I'm wrong in thinking something's wrong here?

Jos Vrancken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20180710/e0ebdc0a/attachment-0001.html>


More information about the docs mailing list