What values are considered false?
John Baxter
jwbaxter at spamcop.net
Thu Feb 21 03:55:42 EST 2002
In article <3c7455a8_4 at corp.newsgroups.com>,
"Joshua Muskovitz" <joshm at taconic.net> wrote:
> Philosophically, I would say that () and "" are different because tuples can
> contain objects of any type, while strings can only contain characters.
I don't think strings contain characters. I think strings contain
one-character strings.
>>> type("abc"[0])
<type 'string'>
This particular test was on
% python
Python 2.1 (#1, 04/22/01, 11:06:25)
[GCC Apple DevKit-based CPP 6.0alpha] on darwin1
--John
More information about the Python-list
mailing list