Newbie look at Python and OO

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Thu May 10 18:30:37 EDT 2007


half.italian at gmail.com a écrit :
(snip)
> After thought:
> 
> I do run into problems testing boolean values on a regular basis.

FWIW, booleans were a late add-on. Originally, Python didn't had a bool 
type, only rules about the boolean value of a given object, mostly: 0, 
0.0, '', [], (,), {} and None are false (you'll probably notice a 
pattern with a concept of emptyness). These rules still apply of course.




More information about the Python-list mailing list