map/filter/reduce/lambda opinions and background unscientific mini-survey

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Thu Jul 7 08:27:35 CEST 2005


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)?

> (None) == ()
>
> Then this "conceptual" comparison should also be true:
> 
> if (None):  ==  if ():
> if (): == if:

I can't really see any coherent concept here.

Reinhold



More information about the Python-list mailing list