Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not use list for hosts #11

Open
patricklucas opened this issue Apr 24, 2012 · 1 comment
Open

Why not use list for hosts #11

patricklucas opened this issue Apr 24, 2012 · 1 comment

Comments

@patricklucas
Copy link
Contributor

Instead of a dict like {0: 'foo', 1: 'bar', etc.} why not use a list? It seems the more natural way of storing that info, and if you still wanted the "readability" of the number, you could add a comment or something:

    'hosts': [
        {'db': 0}, # host 0
        {'db': 1}, # host 1
    ]
@dcramer
Copy link
Collaborator

dcramer commented May 16, 2012

It was an internal design decision. I wouldnt be opposed to supporting both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants