Convert global settings to list subclass #3752
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The style is unclear and inconsistent about whether the settings are preferred to be lists or tuples. A discussion in the mailing list seems to indicate a consensus that lists are preferred, but backward compatibility may be a concern that needs to be considered.
I've implemented a
ConfList
list subclass that is able to act like a tuple in some tricky cases that might otherwise throw errors. Based on recent posts on the mailing list, theConfList
subclass is likely to be discarded in favor of simply documenting the backward incompatibility.I updated the default template to use lists, and I've started working my way through the tutorial, and then on to the rest of the docs. There's still a bunch more to go through.