def _ord_to_namespace(n, _max_length=None):
 if (_max_length is None):
  _max_length = MAX_NAMESPACE_LENGTH
 length = _LEX_DISTANCE[(_max_length - 1)]
 if (n == 0):
  return ''
 n -= 1
 return (NAMESPACE_CHARACTERS[(n / length)] + _ord_to_namespace((n % length), (_max_length - 1)))

def _ord_to_namespace ( n , _max_length = None ) : if ( _max_length is None ) : _max_length = MAX_NAMESPACE_LENGTH length = _LEX_DISTANCE [ ( _max_length - 1 ) ] if ( n == 0 ) : return '' n -= 1 return ( NAMESPACE_CHARACTERS [ ( n / length ) ] + _ord_to_namespace ( ( n % length ) , ( _max_length - 1 ) ) )
convert a namespace ordinal to a namespace string .