def hashCode(value): h=0 if h == 0 or len(value) > 0: for i in range(0,len(value)): h = 31*h + int(value[i]); return h