def mangle_identifier(ident):
 splitted = (''.join(map(_encode, x)) for x in ident.split('.'))
 parts = [('%d%s' % (len(x), x)) for x in splitted]
 if (len(parts) > 1):
  return ('N%sE' % ''.join(parts))
 else:
  return parts[0]

def mangle_identifier ( ident ) : splitted = ( '' . join ( map ( _encode , x ) ) for x in ident . split ( '.' ) ) parts = [ ( '%d%s' % ( len ( x ) , x ) ) for x in splitted ] if ( len ( parts ) > 1 ) : return ( 'N%sE' % '' . join ( parts ) ) else : return parts [ 0 ]
mangle the identifier this treats .