Python 3 isinstance

Lambert, David W (S&T) LambertDW at Corning.com
Wed Jan 14 22:03:37 EST 2009


Overly terse.  I do mean that this is illegal:

isinstance(s, {str, bytes})

tuples have order, immutability, and the possibility of repeat items.

A set is most reasonable in a mathematical sense.



More information about the Python-list mailing list