Basically I want to do this:
obj = \'str\' type ( obj ) == string
I tried:
type ( obj ) == type ( string )
I use type(x) == type(y)
type(x) == type(y)
For instance, if I want to check something is an array:
type( x ) == type( [] )
string check:
type( x ) == type( '' ) or type( x ) == type( u'' )
If you want to check against None, use is
x is None