boolean true and false values.

Thaddeus L. Olczyk olczyk at interaccess.com
Wed Jun 14 17:32:34 EDT 2000


Does python have true and false values.
I would like to do something like

class A:
     def _init_(self):
           self.processed=false
     def process(self):
	self.processed=true

at the moment I am using
false=(1==0)
true=(1==1)
but would like something more elegant, or at least less sloppy.



More information about the Python-list mailing list