#NEWLINE# def encoded_length( self , num_bytes = 16 ) : #NEWLINE# #INDENT# '\n        Returns the string length of the shortened UUID.\n        ' #NEWLINE# factor = ( math . log ( 256 ) / math . log ( self . _alpha_len ) ) #NEWLINE# return int ( math . ceil ( ( factor * num_bytes ) ) )