Skip to content

Instantly share code, notes, and snippets.

Created April 13, 2013 22:36
Show Gist options
  • Select an option

  • Save anonymous/5380394 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5380394 to your computer and use it in GitHub Desktop.
test
# stakx.py
import collections
strs = ['one', 'two', 'three', 'four']
values = (one, two, three, four) = 1, 2, 3, 4
originals = dict(zip(strs, values))
file_params = collections.namedtuple('file_params', 'one two three four')
rfile_params = file_params(**originals)
print(rfile_params.one)
print(rfile_params.two)
print(rfile_params.three)
print(rfile_params.four)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment