Changing truth

Michael Hudson mwh at python.net
Wed Jan 15 20:14:23 CET 2003


Christian Tismer <tismer at tismer.com> writes:

>  >>> True is False and False is True
> False
> 
> This is never true, false?

False:

>>> False = True
>>> True is False and False is True
1

> >>> bool(True == True)
> False

Now *that* I don't understand.

> # ouch! Let's make these invulnerable, ASAP,
> # and None, too

Hey, noone in this thread's even tried to fiddle with the builtins
yet...

Cheers,
M.

-- 
  Our Constitution never promised us a good or efficient government,
  just a representative one. And that's what we got.
      -- http://www.advogato.org/person/mrorganic/diary.html?start=109




More information about the Python-list mailing list