checking if a list is empty

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun May 15 01:07:37 EDT 2011


On Sat, 14 May 2011 19:41:32 -0700, rusi wrote:

> The python entities: {True, False} are not an exact (isomorphic) model
> for the semantic boolean domain {true, false} (which is needed for
> example to explicate the semantics of if while etc)  Which is to say the
> boolean type in python is not first class.

I'm afraid I don't understand what you mean. Can you explain please, what 
properties of "first class booleans" do you think are missing from Python?



-- 
Steven



More information about the Python-list mailing list