I'm not too familiar with the OOP side of Python yet so this is a bit above my head.
>>> a=[[2,3,4]]
>>> types = (list,str,int,str,int)
>>> b=isinstance(a,types)
True
No matter what type I add on after the list type, the expression always returns True.
I have read that isinstance() method accepts derived class types but I can't really convince myself I know whats going on here.
This returns true as well. Is it because all 3 belong to the same class?
>>> isinstance([], (tuple, list, set))
True
Trueifany. You're thinking it should beTrueifall