def _setup_constants(alphabet=NAMESPACE_CHARACTERS, max_length=MAX_NAMESPACE_LENGTH):
 global NAMESPACE_CHARACTERS
 global MAX_NAMESPACE_LENGTH
 global MAX_NAMESPACE
 global _LEX_DISTANCE
 NAMESPACE_CHARACTERS = alphabet
 MAX_NAMESPACE_LENGTH = max_length
 MAX_NAMESPACE = (NAMESPACE_CHARACTERS[(-1)] * MAX_NAMESPACE_LENGTH)
 _LEX_DISTANCE = [1]
 for i in range(1, MAX_NAMESPACE_LENGTH):
  _LEX_DISTANCE.append(((_LEX_DISTANCE[(i - 1)] * len(NAMESPACE_CHARACTERS)) + 1))
 del i

def _setup_constants ( alphabet = NAMESPACE_CHARACTERS , max_length = MAX_NAMESPACE_LENGTH ) : global NAMESPACE_CHARACTERS global MAX_NAMESPACE_LENGTH global MAX_NAMESPACE global _LEX_DISTANCE NAMESPACE_CHARACTERS = alphabet MAX_NAMESPACE_LENGTH = max_length MAX_NAMESPACE = ( NAMESPACE_CHARACTERS [ ( - 1 ) ] * MAX_NAMESPACE_LENGTH ) _LEX_DISTANCE = [ 1 ] for i in range ( 1 , MAX_NAMESPACE_LENGTH ) : _LEX_DISTANCE . append ( ( ( _LEX_DISTANCE [ ( i - 1 ) ] * len ( NAMESPACE_CHARACTERS ) ) + 1 ) ) del i
calculate derived constant values .