On 2007-05-09, Greg Corradini <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I'm having trouble understanding why the following code evaluates as it
> does:
>
string.find('020914A','.') and len('020914A') > 10
> True
len('020914A') > 10 and string.find('020914A','.')
> -1
Thank you Diez and Antoon for demystifing this problem. I see where I've been
going wrong.
Diez B. Roggisch-2 wrote:
>
> Greg Corradini wrote:
>
>>
>> Hello all,
>> I'm having trouble understanding why the following code evaluates as it
>> does:
>>
> string.find('020914A','.') and len
On 2007-05-09, Greg Corradini <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I'm having trouble understanding why the following code evaluates as it
> does:
>
string.find('020914A','.') and len('020914A') > 10
> True
len('020914A') > 10 and string.find('020914A','.')
> -1
>
>
Greg Corradini wrote:
>
> Hello all,
> I'm having trouble understanding why the following code evaluates as it
> does:
>
string.find('020914A','.') and len('020914A') > 10
> True
len('020914A') > 10 and string.find('020914A','.')
> -1
>
> In the 2.4 Python Reference Ma