Does Python have something like an empty string variable where you can do:
if myString == string.empty:
Regardless, what\'s the most elegan
I find this elegant as it makes sure it is a string and checks its length:
def empty(mystring): assert isinstance(mystring, str) if len(mystring) == 0: return True else: return False