Skip to content

Improve access to options of the configuration object #4346

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

Closed
stsewd opened this issue Jul 9, 2018 · 1 comment
Closed

Improve access to options of the configuration object #4346

stsewd opened this issue Jul 9, 2018 · 1 comment
Labels
Improvement Minor improvement to code Needed: design decision A core team decision is required

Comments

@stsewd
Copy link
Member

stsewd commented Jul 9, 2018

When refactoring the configuration object we found some inconsistencies in the names of the properties.

We can:

  • Treat the config as a dictionary
  • Rename some of the attributes now, so that they retain more contextual information -- ie, rename some of the nested options to python_*
  • Use a namedtuple or a package like bunch to create nested attribute accessor instances, instead of repeating the logic above for each accessor

Ref to #4298 (comment)

I think using a namedtuple would be enough for our use case.

@stsewd stsewd added Improvement Minor improvement to code Needed: design decision A core team decision is required labels Jul 9, 2018
@agjohnson agjohnson added this to the YAML File Completion milestone Jul 10, 2018
@stsewd
Copy link
Member Author

stsewd commented Aug 2, 2018

This was done in #4355 using name tuples

@stsewd stsewd closed this as completed Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

2 participants