Short-circuit Logic
Chris Angelico
rosuav at gmail.com
Fri May 31 03:09:01 EDT 2013
On Fri, May 31, 2013 at 3:13 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> What makes you think that the commutative law is relevant here?
>
Equality should be commutative. If a == b, then b == a. Also, it's
generally understood that if a == c and b == c, then a == b, though
there are more exceptions to that (especially in loosely-typed
languages).
ChrisA
More information about the Python-list
mailing list