Newbie: Truth values (three-valued logic)

Greg Ewing greg.ewing at compaq.com
Thu Jun 17 19:00:13 EDT 1999


Olaf Delgado wrote:
> 
> Next time I'll want to redefine 'and' and 'or'. 

You could use '*' and '+', if you always know
when you're dealing with a 3-valued boolean
(troolean? trillian?).

By the way, I think Python 2.0 should let you define
new infix operators -- and design new characters to
represent them! We all have bitmapped screens now --
there's no reason why we should be restricted to a
fixed character set any more...

Greg




More information about the Python-list mailing list