Created
April 13, 2017 18:20
-
-
Save sheepsy90/e8ee40c13ce81c732a2e9e83d473d4bd to your computer and use it in GitHub Desktop.
Weird
This file contains 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
def x(param): | |
print item['key'] | |
_list = [ | |
{'key': 'value1'}, | |
{'key': 'value2'} | |
] | |
# Doesnt work | |
# x(item) | |
# Works | |
for item in _list: | |
x(item) | |
# Works | |
x(item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment