def _generation_hash_value_factory(x):
 if (x is None):
  return x
 transform = (lambda y: y)
 if isinstance(x, bytes):
  transform = ord
 return tuple((transform(i) for i in x))

def _generation_hash_value_factory ( x ) : if ( x is None ) : return x transform = ( lambda y : y ) if isinstance ( x , bytes ) : transform = ord return tuple ( ( transform ( i ) for i in x ) )
factory method to create a generation hash .