"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>> the string class's "nil" value. Each of the builtin types has such an >> "empty" or "nil" value: >> >> string "" >> list [] >> tuple () >> dict {} >> int 0 >> float 0.0 >> complex 0j >> set set() >> >> Any other value besides the above will compare as "not false". >> > > And today's question for the novices is: which Python type did Skip miss > from the above list? more that one: 0L decimal.Decimal(0) # is decimal.Decimal('0'), also u'' array.array('c') # or any other typecode, I suspect, without initializer Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list