How do I pythonicly do:
var = 7.0 var_is_good = isinstance(var, classinfo1) or isinstance(var, classinfo2) or isinstance(var, classinfo3) or ... or isinstance(v
You generally shouldn't be using isinstance, but what you're wanting to do can be accomplished with the any() builtin function.
isinstance
var_is_good = any(isinstance(var, t) for t in [type1, type2, type3])