parameters: (arguments, keydict)
docstring: Replace long name keys by their 4-char counterparts, and check
docstring_summary: Replace long name keys by their 4-char counterparts, and check
docstring_tokens: Replace long name keys by their 4 - char counterparts and check
function: def keysubst(arguments, keydict):
      """Replace long name keys by their 4-char counterparts, and check"""
      ok = keydict.values()
      for k in arguments.keys():
          if k in keydict:
              v = arguments[k]
              del arguments[k]
              arguments[keydict[k]] = v
          elif k != '----' and k not in ok:
              raise TypeError, 'Unknown keyword argument: %s'%k
function_tokens: def keysubst ( arguments , keydict ) : ok = keydict . values ( ) for k in arguments . keys ( ) : if k in keydict : v = arguments [ k ] del arguments [ k ] arguments [ keydict [ k ] ] = v elif k != '----' and k not in ok : raise TypeError , 'Unknown keyword argument: %s' % k