Python 3 isinstance

MRAB google at mrabarnett.plus.com
Wed Jan 14 17:24:23 EST 2009


Lambert, David W (S&T) wrote:
> Please, why isn't a set permitted as the second argument to
> isinstance?
> 
Do you mean set as a class ("isinstance(s, set)", which is valid) or a
set of classes ("isinstance(s, set([str, bytes])", which isn't valid)?



More information about the Python-list mailing list