Last active
August 29, 2015 14:02
-
-
Save chrisglass/cf35ded9f81bd99ca083 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mondict = {"blah": "foo"} | |
def une_fonction(undict): | |
undict["blah"] = "bar" | |
une_fonction(mondict) | |
print mondict # C'est "{'blah': 'bar'} | |
# A l'invere | |
monstring = "blah" | |
def une_autre_fonction(unstring): | |
unstring = "foo" | |
une_autre_fonction(monstring) | |
print monstring # C'est "blah" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment