Skip to content

Instantly share code, notes, and snippets.

@foone
Created October 14, 2014 17:38
Show Gist options
  • Save foone/5dfd6694e85474e0f094 to your computer and use it in GitHub Desktop.
Save foone/5dfd6694e85474e0f094 to your computer and use it in GitHub Desktop.
for dest, key1, key2 in ((output_array1,'foo','bar'), (output_array2,'baz','qux')):
tmp = calculate(key1)
ret = getattr(tmp, key2)
dest.append(ret)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment