map/filter/reduce/lambda opinions and background unscientific mini-survey
Ron Adam
rrr at ronadam.com
Thu Jul 7 12:22:48 EDT 2005
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
More information about the Python-list
mailing list