On 2005-10-19, Grant Edwards <[EMAIL PROTECTED]> wrote: >> So, if I use "l2" thus: >> >> if (l2): # only then does it make it a boolean? > > That doesn't affect the type of the object with the name "l2" > at all. It checks to see if l2 has a false value or not. > Examples of basic objects with false values are an iteger 0, a > floating point 0.0, an empty string "", an empty list [], an > empty tuple (), or an empty dictionary {}.
Oh, and a bool False, obviously. -- Grant Edwards grante Yow! It's so OBVIOUS!! at visi.com -- http://mail.python.org/mailman/listinfo/python-list