[New-bugs-announce] [issue11737] and is not a logical conjugation

Iain Henderson report at bugs.python.org
Fri Apr 1 16:22:56 CEST 2011


New submission from Iain Henderson <the_iain at mac.com>:

The documentation here: http://docs.python.org/library/stdtypes.html
indicates that and operates as such
{if x:
    return x
else:
    return y}

to be a logical conjugation it should function as
{if x:
    if y:
        return True
return False}

The it is now (False and True) will return True.  Basic logic asserts that this is not the case.

----------
messages: 132740
nosy: the_iain
priority: normal
severity: normal
status: open
title: and is not a logical conjugation
versions: Python 2.7

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


More information about the New-bugs-announce mailing list