original_docstring: Map names in <target> argument using the symbolMapClass
      object <themap>, returning a renamed version of the target.
      N.B. Only maps the keys of a dictionary type
docstring: Map names in  argument using the symbolMapClass
  object , returning a renamed version of the target.
docstring_tokens: Map names in argument using the symbolMapClass object returning a renamed version of the target .
code: def mapNames(themap, target):
      """Map names in <target> argument using the symbolMapClass
      object <themap>, returning a renamed version of the target.
      N.B. Only maps the keys of a dictionary type"""
      try:
          themap.lookupDict
      except AttributeError:
          t = repr(type(themap))
          raise TypeError("Map argument must be of type symbolMapClass, not %s"%t)
      if hasattr(target, 'mapNames'):
          ct = copy(target)
          ct.mapNames(themap)  # these methods work in place
          return ct
      elif isinstance(target, list):
          return themap(target)
      elif isinstance(target, tuple):
          return tuple(themap(target))
      elif hasattr(target, 'items'):
          o = {}
          for k, v in target.items():
              o[themap(k)] = v
          return o
      elif isinstance(target, str):
          return themap(target)
      elif target is None:
          return None
      else:
          raise TypeError("Invalid target type %s"%repr(type(target)))
code_tokens: def mapNames ( themap , target ) : try : themap . lookupDict except AttributeError : t = repr ( type ( themap ) ) raise TypeError ( "Map argument must be of type symbolMapClass, not %s" % t ) if hasattr ( target , 'mapNames' ) : ct = copy ( target ) ct . mapNames ( themap ) return ct elif isinstance ( target , list ) : return themap ( target ) elif isinstance ( target , tuple ) : return tuple ( themap ( target ) ) elif hasattr ( target , 'items' ) : o = { } for k , v in target . items ( ) : o [ themap ( k ) ] = v return o elif isinstance ( target , str ) : return themap ( target ) elif target is None : return None else : raise TypeError ( "Invalid target type %s" % repr ( type ( target ) ) )
short_docstring: Map names in <target> argument using the symbolMapClass
  object <themap>, returning a renamed version of the target.
short_docstring_tokens: Map names in <target > argument using the symbolMapClass object <themap > returning a renamed version of the target .
comment: """Map names in <target> argument using the symbolMapClass
      object <themap>, returning a renamed version of the target.
      N.B. Only maps the keys of a dictionary type"""$SEP$# these methods work in place