def sysv_hash(symbol):
 h = 0
 g = 0
 for c in symbol:
  h = ((h << 4) + ord(c))
  g = (h & 4026531840)
  h ^= (g >> 24)
  h &= (~ g)
 return (h & 4294967295)

def sysv_hash ( symbol ) : h = 0 g = 0 for c in symbol : h = ( ( h << 4 ) + ord ( c ) ) g = ( h & 4026531840 ) h ^= ( g >> 24 ) h &= ( ~ g ) return ( h & 4294967295 )
sysv_hash -> int function used to generate sysv-style hashes for strings .