parameters: (text, *pairs)
return_statement: return text
docstring: Do a series of global replacements on a string.
docstring_summary: Do a series of global replacements on a string.
docstring_tokens: Do a series of global replacements on a string .
function: def replace(text, *pairs):
      """Do a series of global replacements on a string."""
      while pairs:
          text = join(split(text, pairs[0]), pairs[1])
          pairs = pairs[2:]
      return text
function_tokens: def replace ( text , * pairs ) : while pairs : text = join ( split ( text , pairs [ 0 ] ) , pairs [ 1 ] ) pairs = pairs [ 2 : ] return text