[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: map/filter/reduce/lambda opinions and background unscientific
From:       Ron Adam <rrr () ronadam ! com>
Date:       2005-07-07 0:56:56
Message-ID: s5%ye.143131$VH2.65836 () tornado ! tampabay ! rr ! com
[Download RAW message or body]

Benji York wrote:
> Ron Adam wrote:
> 
>> "if extraargs:"  would evaluate to "if None:", which would evaluate to 
>> "if:" which would give you an error.
> 
> 
> In what way is "if None:" equivalent to "if:"?
> -- 
> Benji York

It's not now.. but if None where to really represent the concept None, 
as in not bound to anything, it would evaluate to nothing.

Given the statement:

a = None

And the following are all true:

  a == None
(a) == (None)
(a) == ()
(None) == ()

Then this "conceptual" comparison should also be true:

if (None):  ==  if ():
if (): == if:


Comparing if's like that wouldn't be a valid code of course, but it 
demonstrates the consistency in which the comparison is made.

I think. ;-)

Of course this is all hypothetical anyways, so it could be what ever we 
decide makes the most since, include not changing anything.

Cheers,
Ron
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic