What values are considered false?

Roy Smith roy at panix.com
Wed Feb 20 23:14:00 EST 2002


grante at visi.com (Grant Edwards) wrote:
> for non-empty strings type(s) == type(s[0]).

Slightly more generally, type(s) == type(s[0:0]) for all strings, even 
empty ones.



More information about the Python-list mailing list