Lists and Tuples
David Eppstein
eppstein at ics.uci.edu
Fri Dec 5 12:14:06 EST 2003
In article <roy-9E698D.11180005122003 at reader2.panix.com>,
Roy Smith <roy at panix.com> wrote:
> The new isinstance() function can take a tuple (but not a list) as its
> second argument. Why? Logically, it should take any sequence.
What should it do if the second argument is a type object that is also
iterable?
E.g. suppose that iter(bool) produced the sequence True, False. ...
--
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
More information about the Python-list
mailing list