code: def maketrans(fromstr, tostr):
      
      if len(fromstr) != len(tostr):
          raise ValueError, "maketrans arguments must have same length"
      global _idmapL
      if not _idmapL:
          _idmapL = list(_idmap)
      L = _idmapL[:]
      fromstr = map(ord, fromstr)
      for i in range(len(fromstr)):
          L[fromstr[i]] = tostr[i]
      return ''.join(L)
docs: maketrans(frm, to) -> string
  
      Return a translation table (a string of 256 bytes long)
      suitable for use in string.translate.  The strings frm and to
      must be of the same length.