Reinhold Birkenfeld wrote:
> Ron Adam wrote:
> 
> 
>>Given the statement:
>>
>>a = None
>>
>>And the following are all true:
>>
>>  a == None
> 
> 
> Okay.
> 
> 
>>(a) == (None)
> 
> 
> Okay.
> 
> 
>>(a) == ()
> 
> 
> Whoops! a (which is None) is equal to the empty tuple (which is not None)?

It's not an empty tuple, it's an empty parenthesis.  Using tuples it 
would be.

(a,) == (,)

which would be the same as:

(,) == (,)

>>(None) == ()
>>
>>Then this "conceptual" comparison should also be true:
>>
>>if (None):  ==  if ():
>>if (): == if:
> 
> 
> I can't really see any coherent concept here.
> 
> Reinhold

It would work out that.

if: == if:

Does that help?

Cheers,
Ron



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to