Skip to content

Instantly share code, notes, and snippets.

@sheepsy90
Created April 13, 2017 18:20
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 sheepsy90/e8ee40c13ce81c732a2e9e83d473d4bd to your computer and use it in GitHub Desktop.
Save sheepsy90/e8ee40c13ce81c732a2e9e83d473d4bd to your computer and use it in GitHub Desktop.
Weird
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