Python 3 isinstance

Lambert, David W (S&T) LambertDW at
Thu Jan 15 04:03:37 CET 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