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 = pairs[1].join(text.split(pairs[0]))
          pairs = pairs[2:]
      return text
function_tokens: def replace ( text , * pairs ) : while pairs : text = pairs [ 1 ] . join ( text . split ( pairs [ 0 ] ) ) pairs = pairs [ 2 : ] return text