Python si la cadena es nula o blanca
def IsNullOrEmpty(x): # Returns true if null or empty
nullorempty = False
if not(x): # checks for nulls
nullorempty = True
if x.isspace(): # checks for blank strings
nullorempty = True
return nullorempty
Powerful Penguin