How can I check if a Python object is a string (either regular or Unicode)?
I found this ans more pythonic:
pythonic
if type(aObject) is str: #do your stuff here pass
since type objects are singleton, is can be used to do the compare the object to the str type