Python 3 isinstance

MRAB google at mrabarnett.plus.com
Wed Jan 14 23:24:23 CET 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