Re: Evaluation of Truth Curiosity

2006-09-21 Thread James Stroud
Everyone wrote: > [something intelligent] Ah, clarity. My confusion can undoubtedly be traced to a non-existent formal training in computer programming. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Evaluation of Truth Curiosity

2006-09-21 Thread Christophe
James Stroud a écrit : > Hello All, > > I'm curious, in > > py> 0 | (1 == 1) > 1 > py> False | (1 == 1) > True > > What is the logic of the former expression not evaluating to True (or > why the latter not 1?)? Is there some logic that necessitates the first > operand's dictating the result of

Re: Evaluation of Truth Curiosity

2006-09-21 Thread Fredrik Lundh
James Stroud wrote: > I'm curious, in > > py> 0 | (1 == 1) > 1 > py> False | (1 == 1) > True > > What is the logic of the former expression not evaluating to True (or > why the latter not 1?)? Is there some logic that necessitates the first > operand's dictating the result of the evaluation? O

Re: Evaluation of Truth Curiosity

2006-09-21 Thread MonkeeSage
James Stroud wrote: > What is the logic of the former expression not evaluating to True (or > why the latter not 1?)? Is there some logic that necessitates the first > operand's dictating the result of the evaluation? Or is this an artefact > of the CPython implementation? If I understand correctl