Skip to content

Instantly share code, notes, and snippets.

@harvimt
Last active December 16, 2015 08:49
Show Gist options
  • Save harvimt/5408561 to your computer and use it in GitHub Desktop.
Save harvimt/5408561 to your computer and use it in GitHub Desktop.
>>> b = a = 'foo|bar'
>>> b = b.replace('|',' ')
>>> b
'foo bar'
>>> a
'foo|bar'
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment