SyntaxFix
Write A Post
Hire A Developer
Questions
isinstance()
In your case, isinstance("this is a string", str) will return True.
isinstance("this is a string", str)
True
You may also want to read this: http://www.canonical.org/~kragen/isinstance/