Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created November 4, 2010 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpritchett/662752 to your computer and use it in GitHub Desktop.
Save dpritchett/662752 to your computer and use it in GitHub Desktop.
myVal = r'input="lolwut"'
myVal = myVal.split('=')
myVal[1] = myVal[1].replace('"', '') #remove doublequote
myDict = {}
myDict.update({ myVal[0]: myVal[1] })
print myDict.get('input')
# prints lolwut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment