def _GroupByArguments(self, signatures):
    'Groups signatures by arguments.\n\n    Arguments:\n      signatures: A list of function signatures (Signature instances).\n\n    Returns:\n      A dictionary mapping signatures (without return and exceptions) to\n      a tuple of return values and exceptions.\n    '
    groups = collections.OrderedDict()
    for sig in signatures:
        stripped_signature = sig.Replace(return_type=None, exceptions=None)
        ret = groups.get(stripped_signature)
        if (not ret):
            ret = _ReturnsAndExceptions()
            groups[stripped_signature] = ret
        ret.Update(sig)
    return groups
Groups signatures by arguments.

Arguments:
  signatures: A list of function signatures (Signature instances).

Returns:
  A dictionary mapping signatures (without return and exceptions) to
  a tuple of return values and exceptions.
def _GroupByArguments(self, signatures):
    'Groups signatures by arguments.\n\n    Arguments:\n      signatures: A list of function signatures (Signature instances).\n\n    Returns:\n      A dictionary mapping signatures (without return and exceptions) to\n      a tuple of return values and exceptions.\n    '
    groups = collections.OrderedDict()
    for sig in signatures:
        stripped_signature = sig.Replace(return_type=None, exceptions=None)
        ret = groups.get(stripped_signature)
        if (not ret):
            ret = _ReturnsAndExceptions()
            groups[stripped_signature] = ret
        ret.Update(sig)
    return groups